<i id='UFty0'><tr id='UFty0'><dt id='UFty0'><q id='UFty0'><span id='UFty0'><b id='UFty0'><form id='UFty0'><ins id='UFty0'></ins><ul id='UFty0'></ul><sub id='UFty0'></sub></form><legend id='UFty0'></legend><bdo id='UFty0'><pre id='UFty0'><center id='UFty0'></center></pre></bdo></b><th id='UFty0'></th></span></q></dt></tr></i><div id='UFty0'><tfoot id='UFty0'></tfoot><dl id='UFty0'><fieldset id='UFty0'></fieldset></dl></div>
        <bdo id='UFty0'></bdo><ul id='UFty0'></ul>
      <legend id='UFty0'><style id='UFty0'><dir id='UFty0'><q id='UFty0'></q></dir></style></legend>

      <tfoot id='UFty0'></tfoot>

      1. <small id='UFty0'></small><noframes id='UFty0'>

      2. 支付成功后如何从paypal获取交易明细

        How can get transaction details from paypal after successful payment(支付成功后如何从paypal获取交易明细)

          • <bdo id='XCp12'></bdo><ul id='XCp12'></ul>
              <tbody id='XCp12'></tbody>
            <legend id='XCp12'><style id='XCp12'><dir id='XCp12'><q id='XCp12'></q></dir></style></legend>
            <tfoot id='XCp12'></tfoot>
            • <i id='XCp12'><tr id='XCp12'><dt id='XCp12'><q id='XCp12'><span id='XCp12'><b id='XCp12'><form id='XCp12'><ins id='XCp12'></ins><ul id='XCp12'></ul><sub id='XCp12'></sub></form><legend id='XCp12'></legend><bdo id='XCp12'><pre id='XCp12'><center id='XCp12'></center></pre></bdo></b><th id='XCp12'></th></span></q></dt></tr></i><div id='XCp12'><tfoot id='XCp12'></tfoot><dl id='XCp12'><fieldset id='XCp12'></fieldset></dl></div>

                  <small id='XCp12'></small><noframes id='XCp12'>

                • 本文介绍了支付成功后如何从paypal获取交易明细的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述


                  我发送到贝宝的数据是


                  My sent data to paypal is

                  "https://www.paypal.com/cgi-bin/webscr/cmd=_cart&upload=1&business=seller.email@something.com&currency_code=USD&bn=BusinessName&return=http://www.sellersite.com&item_number_1=55&item_name_1=battery&amount_1=55&quantity_1=2&item_number_2=52&item_name_2=bat&amount_2=5&quantity_2=3"
                  

                  我想在成功付款后在http://www.sellersite.com"上向买家显示那些发送的数据(商品编号、商品名称、金额、数量)和贝宝交易ID.(假设卖家有 paypal 的商家帐户,他会从网站的管理部分将该 paypal id 输入数据库.所以,我不会考虑他的 paypal 帐户设置,我的工作只是为 paypal 付款创建环境给卖家.)

                  如果我写一个像

                  And I want to show those sent data(item number, item name,amount,quantity) and the paypal transaction id to the buyer on "http://www.sellersite.com" after successful payment. (Suppose, the seller has the merchant account with paypal and he would enter that paypal id into database from admin section of the website. So,I would not think about his paypal account settings, my job is just to create the environment for paypal payment for the seller.)

                  If I write a script like

                  $T_ID=$_REQUEST['tx']; // or $T_ID=$_GET['tx']; **ref(tx):- "https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/howto_html_paymentdatatransfer"
                  
                  $item=$_REQUEST['item_number_1']; // or $item=$_GET['item_number_1'];
                  

                  那我会从贝宝那里得到这些数据吗?

                  Then would I get those data from paypal ?

                  请告诉我.

                  -谢谢.

                  推荐答案

                  事情不会那么简单.您需要设置 支付数据传输(PDT) 以便在买家完成付款后将详细信息发送回您的退货网址.

                  It's not going to be quite that simple. You'll need to setup Payment Data Transfer (PDT) in order to get details sent back to your return URL after the buyer completes the payment.

                  如果您只是想向用户显示详细信息,这很有用,但不建议更新您自己的数据库、发送电子邮件通知等.因为无法保证会访问此页面,因此代码不会总是运行.

                  This is useful if you're simply going to display details back to the user, but it's not recommended for updating your own database, sending out email notifications, etc. because there is no guarantee this page will ever be reached so the code won't always run.

                  对于这类事情,您需要使用即时付款通知 (IPN).这与 PDT 非常相似,不同之处在于它始终将数据发布到您服务器上的 IPN 侦听器,无论用户是否将其返回到您的返回 URL,并且它一起发生在您的结帐系统之外.

                  For that sort of thing you'll want to use Instant Payment Notification (IPN). This works very similar to PDT except that it will always POST data to your IPN listener on your server regardless of whether or not the user makes it back to your return URL, and it happens outside of your checkout system all together.

                  这篇关于支付成功后如何从paypal获取交易明细的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                      <tfoot id='9i691'></tfoot>
                        <bdo id='9i691'></bdo><ul id='9i691'></ul>
                        <legend id='9i691'><style id='9i691'><dir id='9i691'><q id='9i691'></q></dir></style></legend>

                          <small id='9i691'></small><noframes id='9i691'>

                            <i id='9i691'><tr id='9i691'><dt id='9i691'><q id='9i691'><span id='9i691'><b id='9i691'><form id='9i691'><ins id='9i691'></ins><ul id='9i691'></ul><sub id='9i691'></sub></form><legend id='9i691'></legend><bdo id='9i691'><pre id='9i691'><center id='9i691'></center></pre></bdo></b><th id='9i691'></th></span></q></dt></tr></i><div id='9i691'><tfoot id='9i691'></tfoot><dl id='9i691'><fieldset id='9i691'></fieldset></dl></div>
                              <tbody id='9i691'></tbody>