duanjia4969 2011-01-08 21:45
浏览 103

PayPal订阅/ Notify_URL未被调用(在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 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..

  • 写回答

3条回答 默认 最新

  • doukuo9116 2011-01-12 05:11
    关注

    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

    评论

报告相同问题?

悬赏问题

  • ¥17 pro*C预编译“闪回查询”报错SCN不能识别
  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向