开发者

PayPal Subscription/Notify_URL NOT being called (works under Sandbox)

I don't get it.. I tested out the subscription button in Sandbox mode and it ran through successfully. The test-business received the payment, and the notify_url was called just fine. But as soon as I swapped out of Sandbox mode, the business still gets payed, the subscription successfully gets set up, but the notify_url isn't even being called. The ONLY things I'm changing between the live/sandbox forms are:

{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:

        <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开发者_如何学Go 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 oh why is this not working ?? I'm pulling my hair out over here trying to figure this out for my client. I can't figure where things are going wrong. Please help me, I'm supposed to get this finished for my client asap. I've got everything else working 100% except this 1 thing. Thanks..


I asked over on the PayPal forums and found out what was going wrong. Apparently for subscriptions, the business account must manually enter in their IPN settings under their profile.

Click here for source


You need activate IPN on production account:

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

Click the profile icon (Profile menu) on the top right side of the page. From the Business Profile menu, select Profile and Settings, then select My selling tools. ...

Click Receive IPN messages (Enabled) to enable your listener.


i think here is minor 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 replace to action=paypal".

Just try, this may work good..

Thanks.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜