【问题标题】:After paypal payment,I don't get transaction details. in sandbox account贝宝付款后,我没有得到交易详情。在沙盒帐户中
【发布时间】:2017-08-23 05:16:20
【问题描述】:

我的 paypal 付款成功完成,但付款后,我没有得到交易详情,如交易 ID、货币、价格、项目、收据号等... 在 15 天之前它工作正常。但现在它不工作了。

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

      <!-- Identify your business so that you can collect the payments. -->
      <input type="hidden" name="business" value="kin@kinskards.com">

       <!-- Specify a PayPal Shopping Cart Add to Cart button. -->
      <input type="hidden" name="cmd" value="_cart">
       <input type="hidden" name="add" value="1">

       <!-- Specify details about the item that buyers will purchase. -->
       <input type="hidden" name="item_name" value="Birthday - Cake and 
       Candle">
      <input type="hidden" name="amount" value="3.95">
      <input type="hidden" name="currency_code" value="USD">
      <input type="hidden" name="cancel_return" 
       value="http://localhost/PayPalDemo/PayPalDemoCancel.php">
      <input type="hidden" name="return" 
      value="http://localhost/PayPalDemo/PayPalDemo/Succes.php">
      <!-- Display the payment button. -->
      <input type="image" name="submit"
src="https://www.paypalobjects.com/webstatic/en_US/i/btn/png/btn_addtocart_120x26.png"
       alt="Add to Cart">
      <img alt="" width="1" height="1"
      src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif">
    </form> 

【问题讨论】:

标签: php paypal paypal-sandbox paypal-ipn


【解决方案1】:

您必须传递 notify_url 参数,例如 cancel_return

<input type="hidden" name="notify_url" value="http://localhost/PayPalDemo/PayPalDemoPayment.php" />

您还必须在 IPN 部分的沙盒帐户中设置此 URL。参考这个https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNSimulator/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-04-27
    • 1970-01-01
    • 2018-04-17
    • 1970-01-01
    • 2013-08-24
    • 2015-09-18
    • 2013-04-26
    相关资源
    最近更新 更多