Simple Membership Plugin › Forums › Simple Membership Plugin › PayPal Button – IPN setting – "notify_URL" parameter
Tagged: "notify_URL", button, paypal
- This topic has 8 replies, 3 voices, and was last updated 7 years, 10 months ago by
admin.
-
AuthorPosts
-
June 18, 2018 at 5:42 pm #14725
Martin
ParticipantHello. I have an issue with PayPal buttons:
I am using an integration with Zapier and Invoice Ninja to create incvoicesI need the information of the payment to be sent to Zapier in order to make the process of invoice creation automatic.
To do this I should change the “notify_URL” parameter inside the button created by Simple Membership Pug In
Actually this is set at https://mywebsite/?swpm_process_ipn=1
Using Zapier I can get the information, send it to Invoice Ninja and pass the same information again to the same “notify_URL” in order to make the plug in work
My Question is: Is there a way I can change the “notify_URL” parameter for buttons created inside the plug-in?
Can you please help me find how I can do it?
Thank you!
June 18, 2018 at 6:00 pm #14726The Assurer
ModeratorFrom what I understand, Zapier “is like” IFTTT; and that you are wanting the PayPal IPN sent to SWPM to “kick-off” a Zapier task, that triggers an Invoice Ninja event???
My Question is: Is there a way I can change the “notify_URL” parameter for buttons created inside the plug-in?
“No.” SWPM needs to receive the IPN, if you want the registration process to complete correctly.
June 19, 2018 at 12:51 am #14732admin
KeymasterWe actually have action hooks that you can use to forward the PayPal IPN message to an external URL.
swpm_paypal_ipn_processed
We can potentially add a feature in the plugin that makes it easy to forward the IPN maybe.
June 19, 2018 at 8:37 am #14737Martin
ParticipantThank you for your answers!
@The assurer: yes Zapier is a little bit like ITTT, it’s a service that helps applications to “talk” each other and set up automated tasks.
What I am looking for: a way to automatically create an invoice every time someone buys a membership on my site.
I understand “SWPM needs to receive the IPN, if you want the registration process to complete correctly”
What I would like to do: send IPN to Zapier, this will then send the same IPN info to SWPM and Invoice ninja.
@admin can you help me?
This is important to me…
I would be happy to invest in this feature.
(how much would it take?)THanks!
June 19, 2018 at 11:43 am #14738The Assurer
Moderator@admin can you help me?
This is important to me…
I would be happy to invest in this feature.
(how much would it take?)Please complete a Paid Support request, and a developer will contact you.
June 21, 2018 at 3:37 pm #14756Martin
ParticipantHow is my server set to accept data? What format does it need to be sent on in? Do you have some documentation for Simple Membership Plug In webhooks I can take a peek at?
This would be very usefull!
June 22, 2018 at 1:34 am #14757admin
KeymasterWe use the standard PayPal IPN message. Just read up on PayPal IPN message and you will know the formatting.
June 22, 2018 at 5:19 pm #14759Martin
ParticipantThank you for the reply.
I just need to know what should be set in the content-type headerSomething like “application/x-www-form-urlencoded”
I would be very happy if you could give me a hint!
June 23, 2018 at 1:49 am #14764admin
KeymasterTo be honest with you, I have no idea what you are trying to do there with the message formatting.
I would forward the data (the $ipn_data array that contains the IPN data) to an URL by using code similar to the following. Please not the following is just some sample code (I didn’t test this code as the setup of this takes some time):
$post_url = 'https://example.com/';//This is the URL where the IPN should be forwarded // Send IPN data to post URL $ch = curl_init ($post_url); curl_setopt ($ch, CURLOPT_POST, true); curl_setopt ($ch, CURLOPT_POSTFIELDS, $ipn_data); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true); $returnValue = curl_exec ($ch); curl_close ($ch); -
AuthorPosts
- You must be logged in to reply to this topic.