How to get Twilio SMS StatusCallback from Gravity form? - wordpress

I have installed GravityForm on my Wordpress, and the GravityForm Twilio addon. So I can easily send SMS from a web form and store the entries in my WordPress database.
My problem is that I have no SMS StatusCallback and I need it as a confirmation and attach it to the form entry.
It seems that it's possible (https://www.twilio.com/docs/sms/send-messages#monitor-the-status-of-your-message) but I have no idea if this is big work or just minutes.

Twilio developer evangelist here.
It's possible to monitor the status of an SMS message with Twilio using a status callback URL, however the status callback URL needs to be set by the code that sends the message.
To add this to the Gravity Forms add on you would need to edit the code of the plugin as well as provide a URL for Twilio to make the callback to.
I've not worked with Gravity Forms before and I don't know whether it's possble to edit the add-ons. You might want to check with Gravity Forms support to see if it is possible or to raise a feature request to add status callbacks to the Twilio add-on.

Related

How to find connection breakdown or misconfiguration

I have a client with a Wordpress website. The contact form stopped sending, so I found a plugin called Mail Integration for Office 365/Outlook that could use his MS365 email to send all email from the website using that account.
I installed the plugin and followed the instructions to create an Azure AD App Registration and configure the plugin with the appropriate data from the App Registration. I tried submitting the contact form and there were no errors on the page (it gave me a success message), but the email never arrived in my inbox (yes, I checked spam). I installed a different form plugin, WP Forms, and put it on a test page. The call to admin-ajax appears to be going through successfully, receiving json with success and a confirmation message (which it outputs to the page).
So I searched the plugin's support forum where the creator mentioned using the plugin Check & Log Email to test that the emails are sending. I installed/activated the plugin and sent a test email. It shows it as sent successfully. It never arrived in my inbox (yes, I checked spam).
I have checked the error logs and didn't see anything helpful.
To fix the issue, I first need to find it:
Do I need to complete additional configuration that I've just missed?
How do I find out if the plugin can even connect to the App Registration? It doesn't have a Test Connection feature, which it clearly needs. The reviews on the plugin page are all positive and recent, so it's working for other people.
How do I troubleshoot this from the Azure Active Directory side to make sure it's receiving data?
Please help! Thanks.

WordPress Plugin Development - Post request

Am developing wordpress plugin that makes donation, through lcoal online payment providers. After payment complete a post request should be sent to the website.
My question is how to make specific wordpress page receive post request using the plugin i created
Indeed, this question is unclear.
But to what I understand, you want that a specific page that would be provided by a user of your plugin, be called upon completion of the payment.
Your plugin would allow entering that page in the plugin's configuration.
If it's that, as an example, Paypal does it : See https://developer.paypal.com/docs/classic/paypal-payments-standard/integration-guide/step_3/, Take customers to this URL when they finish checkout : They call back the URL passed to their site, upon payment completion.
In your case, you must see with your local online payment provider if he supports that feature and call it with such URL as parameter.

Sending mail in Paypal IPN listener page does not work

I'm working on windows Azure ASP.NET integrating Paypal in it.
I succeeded creating the listener page in my website. After "VERIFIED" was received the page updates the database as I requested, but I cant send a mail - I don't get an error message, but the mail isn't in the inbox (I'm using sendGrid).
I can send a mail in other pages of my website.
What is the best way to send a mail from the listener page in asp.net?
Thanks
If the script is running but your email isn't getting sent then there must be some sort of an error happening, or may be a simple logic flaw in your code.
I wrote this article a while back on how to test PayPal IPN. I'd recommend taking a look at it and following the steps. It will help you track down the problem and get it resolved.

How to modify Email Confirmation message - Firebase

I am using email & password authentication provided by Firebase.
Below is the message the user gets, when they confirm their email address. Is there any way to customize the below message.
I would like to add a link to this message so that the users can be directed to the website. Can someone please suggest, how I could achieve this.
You can customize this page by setting up a custom email action handler.
From there:
To customize your Firebase project's email action handler, you must create and host a web page that uses the Firebase JavaScript SDK to verify the request's validity and complete the request. Then, you must customize your Firebase project's email templates to link to your custom action handler.
But you should really just follow the link and read the entire page on the Firebase site as it contains a great description and sample code.
This page explains it very well.
https://firebase.google.com/docs/auth/custom-email-handler
The only thing I dont like is that the email message body cannot be customized. Allowing a Mandrill integration would be awesome imo.

Preventing Spoofing with Paypal

I have a scenario where i need to have a user checkout through PayPal and then once we receive the payment then we create a membership record in our membership site. The PayPal requires a "return" field when you submit the form button that will take the user back to our page once the order has been successfully processed. On that page is where we actually track the sale and fire a chunk of javascript to track the sale.
So my question is this, how can i make sure that the return page comes from PayPal and is not spoofed by a user in the system. I know there is a way to use the notify_url to have PayPal post back to our system, but in this case i have to run a chunk of javascript. Is there an easy way to do this, or would i have to write some looping/timeout function that checks to see if the notify post has come through?
Im using .net to do the posting to paypal
You need to have PayPal call a script on your site in order to prevent spoofing. Anything that goes through the client/browser is open to the user for modification, so only things that come directly to your server from PayPal are secure.

Resources