【问题标题】:Paypal integration problem支付宝整合问题
【发布时间】:2011-07-22 11:41:07
【问题描述】:

我在集成 paypal IPN 时遇到问题。我正在实现此代码,但它没有将值返回给 IPN 我执行代码后的表单如下

   <form method="post" name="paypal_form" action="https://www.sandbox.paypal.com/cgi-bin/webscr">

      <input type="hidden" name="rm" value="2"/>

      <input type="hidden" name="cmd" value="_cart"/>

      <input type="hidden" name="business" value="info@something.com"/>

      <input type="hidden" name="return" value="http://abc.com/test.php?action=success"/>

      <input type="hidden" name="cancel_return" value="http://abc.com/test.php?action=cancel"/>
         <input type="hidden" name="notify_url" value="http://abc.com/test.php?action=ipn"/>
         <input type="hidden" name="item_name_1" value="Adob photoshop"/>

      <input type="hidden" name="item_number_1" value="10"/>
        <input type="hidden" name="amount_1" value="15"/>

      <input type="hidden" name="upload" value="1"/>

      <input type="hidden" name="cn" value="1"/>
       <input type="hidden" name="tx" value="TransactionID"/>
       <input type="hidden" name="currency_code" value="USD"/>
        <input type="hidden" name="no_shipping" value="1"/>
        <center><br/><br/>If you are not automatically redirected to paypal within 5 seconds...<br/><br/>
        <input type="submit" value="Click Here"></center>
        </form>

问题是返回和取消部分的代码工作正常,但是当我将此代码用于 IPN 时,它没有给我任何价值。我的 IPN 代码如下

if ($pay->validate_ipn()) {
   //do the insertion I have tested this insertion it is working fine
   }

【问题讨论】:

    标签: paypal-sandbox


    【解决方案1】:

    在您的 PayPal 帐户中查看历史记录 > IPN 历史记录。这应该会显示发送给您的 IPN 消息的状态。如果您想了解更多详细信息,请单击消息 ID。
    如果它正在重试,请仔细检查您的错误日志并确保它在被 PayPal IPN 服务 (notify.paypal.com) 访问时返回正确的 HTTP/1.1 200 OK 响应。

    【讨论】:

      猜你喜欢
      • 2011-11-09
      • 1970-01-01
      • 1970-01-01
      • 2015-01-15
      • 1970-01-01
      • 2014-12-03
      • 1970-01-01
      • 2012-02-26
      • 2015-08-01
      相关资源
      最近更新 更多