Subscription to PayPal / Notify_URL is NOT called (works in Sandbox)

I do not understand. I tested the subscribe button in Sandbox mode and it was successful. The test business received a payment, and notify_url was called just fine. But as soon as I switched from Sandbox mode, the business is still paid, the subscription is successfully configured, but notify_url is not even called. The only things I change between live / sandbox formats:

{if $sandbox == TRUE} <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"> {else} <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> {/if} 

and

 {if $sandbox == TRUE} <input type="hidden" name="hosted_button_id" value="46CVBBYCFHPSY" /> {else} <input type="hidden" name="hosted_button_id" value="VCL8LGQUWCM5E" /> {/if} 

and just in case it matters ... the rest of it looks like this:

  <input type="hidden" name="cmd" value="_s-xclick" /><input type="image" src="https://www.paypal.com/en_US/GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online." /> <input type="hidden" name="custom" value="{$user->user_info.user_id}" /> <input type="hidden" name="return" value="http://www.singlesikhs.co.uk/dev/singlesikhs/payment.php?task=success" /> <input type="hidden" name="notify_url" value="http://www.singlesikhs.co.uk/dev/singlesikhs/payment_paypal.php?action=ipn" /> <input type="hidden" name="cancel_return" value="http://www.singlesikhs.co.uk/dev/singlesikhs/payment.php?task=cancel" /> <img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1"> </form> 

Why, why is this not working? I am pulling my hair here, trying to figure it out for my client. I can’t understand where everything is going wrong. Please help me, I have to make it finished for my client as soon as possible. I have everything else working 100%, with the exception of this thing. Thanks..

+4
source share
3 answers

I asked on the PayPal forums and found out what was going wrong. Obviously, for a subscription, a business account must manually enter its IPN settings in its profile.

Click here for source.

+2
source

You need to activate IPN on the production account:

https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNSetup/

Click the profile icon (profile menu) at the top right of the page. From the Business Profile menu, select β€œProfile” and β€œSettings,” then β€œMy Selling Tools.” ...

Click Receive IPN Messages (Enabled) to enable the listener.

0
source

I think there is a slight change in this line.

  <input type="hidden" name="notify_url" value="http://www.singlesikhs.co.uk/dev/singlesikhs/payment_paypal.php?action=paypal" /> 

action = ipn "should be replaced with action = paypal".

Just try it, it might work well.

Thanks.

-6
source

Source: https://habr.com/ru/post/1334777/


All Articles