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

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

      <tfoot id='xu5Ti'></tfoot>

      • <bdo id='xu5Ti'></bdo><ul id='xu5Ti'></ul>

        php paypal快速结账问题

        php paypal express checkout problem(php paypal快速结账问题)

              • <bdo id='OsaQn'></bdo><ul id='OsaQn'></ul>

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

              • <i id='OsaQn'><tr id='OsaQn'><dt id='OsaQn'><q id='OsaQn'><span id='OsaQn'><b id='OsaQn'><form id='OsaQn'><ins id='OsaQn'></ins><ul id='OsaQn'></ul><sub id='OsaQn'></sub></form><legend id='OsaQn'></legend><bdo id='OsaQn'><pre id='OsaQn'><center id='OsaQn'></center></pre></bdo></b><th id='OsaQn'></th></span></q></dt></tr></i><div id='OsaQn'><tfoot id='OsaQn'></tfoot><dl id='OsaQn'><fieldset id='OsaQn'></fieldset></dl></div>
                <tfoot id='OsaQn'></tfoot>
                  <tbody id='OsaQn'></tbody>
                  <legend id='OsaQn'><style id='OsaQn'><dir id='OsaQn'><q id='OsaQn'></q></dir></style></legend>
                  本文介绍了php paypal快速结账问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试在我的网站上集成贝宝快速结账功能.我试图使用沙箱进行检查.当我从我的站点令牌提交数据时,生成的数据没有错误,但是当重定向到 paypal 时,它没有显示付款金额.顺便说一句,我正在使用贝宝快速结账向导中的代码.如果有人指出我正确的方向会很有帮助.

                  I'm trying to integrate paypal express checkout on my website. I was trying to check using sandbox. When I submit data from my site token is generated with no error but when redirected to paypal it's not showing payment amount. btw I'm using the code from paypal express checkout wizard. It will be helpful if some one points me to correct direction.

                  require_once ("paypalfunctions.php");
                  
                  $paymentAmount = 15;
                  
                  $currencyCodeType = "GBP";
                  $paymentType = "Sale";
                  $returnURL = "http://www.mysite.com/paypal/confirm.php";
                  $cancelURL = "http://www.mysite.com/paypal/index.php";
                  $resArray = CallShortcutExpressCheckout ($paymentAmount, $currencyCodeType,            $paymentType, $returnURL, $cancelURL);
                  $ack = strtoupper($resArray["ACK"]);
                  if($ack=="SUCCESS")
                  {
                  RedirectToPayPal ( $resArray["TOKEN"] );
                  
                  } 
                  

                  推荐答案

                  由于您没有传递所谓的订单项详细信息"(产品数据),因此 PayPal 不会显示总金额.

                  As you're not passing so called 'line item details' (product data), PayPal doesn't display the total amount.

                  如果您只想显示当前购买的金额,请将买家重定向至 https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-xxxxxx&useraction=commit(而不是https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-xxxxx)

                  If you only want to show the amount for the current purchase, redirect buyers to https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-xxxxxx&useraction=commit (instead of https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-xxxxx)

                  如果您想开始向 PayPal 发送订单项详细信息,请在您的 SetExpressCheckout API 请求中包含以下内容:

                  If you want to start sending line-item details to PayPal, include the following in your SetExpressCheckout API request:

                  // Total amount of the purchase, incl shipping, tax, etc  
                  PAYMENTREQUEST_0_AMT=300.0  
                  // Total amount of items purchased, excl shipping, tax, etc     
                  PAYMENTREQUEST_0_ITEMAMT=300.0  
                  // Authorize the funds first (Authorization), or capture immediately (Sale)?    
                  PAYMENTREQUEST_0_PAYMENTACTION=Sale  
                  // First item  
                  L_PAYMENTREQUEST_0_NAME0=Item1  
                  L_PAYMENTREQUEST_0_QTY0=1  
                  L_PAYMENTREQUEST_0_AMT0=100.00  
                  // Second item  
                  L_PAYMENTREQUEST_0_NAME1=Item2  
                  L_PAYMENTREQUEST_0_QTY1=1  
                  L_PAYMENTREQUEST_0_AMT1=200.00 
                  

                  如果您也想在自己的历史记录中看到这一点,您还需要将其包含在 DoExpressCheckoutPayment 中.

                  If you want to see this in your own history as well, you'll also need to include this in DoExpressCheckoutPayment.

                  这篇关于php 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 的问题)

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

                      <tfoot id='MOOMR'></tfoot>
                        <bdo id='MOOMR'></bdo><ul id='MOOMR'></ul>

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

                        • <legend id='MOOMR'><style id='MOOMR'><dir id='MOOMR'><q id='MOOMR'></q></dir></style></legend>
                              <tbody id='MOOMR'></tbody>