Hi, What shortcode are you using?
I have multiple users on my wordpress website, each user has their own account, and user_id generated by wordpress.
I need to enable some custom features for that user after i get their payment. So when a successful IPN comes in, i want to call my custom function so i can enable the custom features they paid for.
To do that i need to know their wordpress user_id, and the amount, those needs to get passed into my custom function so i know which account to enable those custom features.
here are the short codes
[wp_paypal button=”buynow” name=”My product” amount=”10.00″]
[wp_paypal button=”buynow” name=”My product” amount=”50.00″]
[wp_paypal button=”buynow” name=”My product” amount=”100.00″]
Can you please let me know how to get the IPN function call like this when a successful IPN happens?
function my_function($userID,$amount)
{
}
Also what is the URL that paypal should call on my site to send the IPN message?
Thanks
-
This reply was modified 1 year, 11 months ago by
sidejobs.
-
This reply was modified 1 year, 11 months ago by
sidejobs.
-
This reply was modified 1 year, 11 months ago by
sidejobs.
Thanks. This post should help: https://wordpress.org/support/topic/custom-callback-function/
The plugin doesn’t track user IDs unfortunately.
Hi,
How can i modify the plug in to keep track of which user sent the payment, and match it with the IPN coming back?
which URL should i put in the paypal site to call when sending the IPN to my site?
Thanks
-
This reply was modified 1 year, 11 months ago by
sidejobs.