我需要使用 php 在 PayPal 中进行移动快速结帐付款编码的指导或更正吗?

发布于 2024-11-08 19:38:27 字数 1446 浏览 3 评论 0原文

以下编码对我不起作用。,金额没有支付给我提供的相关商家 ID。,我的编码上会发生任何错误。,这方面有任何众所周知的机构吗?这意味着我需要尽快帮助...

$nvpstr.="&METHOD=SetExpressCheckout
&RETURNURL=http://project.websolusionz.com/paypal/demo/thanks.php
&CANCELURL=http://project.websolusionz.com/paypal/demo/cart.php
&PAYMENTACTION=Sale
&PAYMENTREQUEST_0_CURRENCYCODE=USD
&PAYMENTREQUEST_0_AMT=0.1
&PAYMENTREQUEST_0_ITEMAMT=0.1
&PAYMENTREQUEST_0_DESC0=My Product (Product1)
&PAYMENTREQUEST_0_SELLERPAYPALACCOUNTID=merch1_1305546355_biz@gmail.com
&PAYMENTREQUEST_0_PAYMENTREQUESTID=CART26488-PAYMENT0
&L_PAYMENTREQUEST_0_NAME0=My Product (Product 1)
&L_PAYMENTREQUEST_0_QTY0=1
&L_PAYMENTREQUEST_0_AMT0=0.1

&PAYMENTREQUEST_1_CURRENCYCODE=USD
&PAYMENTREQUEST_1_AMT=0.1
&PAYMENTREQUEST_1_ITEMAMT=0.1
&PAYMENTREQUEST_1_DESC1=My Product (Product 5)
&PAYMENTREQUEST_1_SELLERPAYPALACCOUNTID=merch2_1305546449_biz@gmail.com
&PAYMENTREQUEST_1_PAYMENTREQUESTID=CART26488-PAYMENT1
&L_PAYMENTREQUEST_1_NAME1=My Product (Product 5)
&L_PAYMENTREQUEST_1_QTY1=1
&L_PAYMENTREQUEST_1_AMT1=0.1";

我的 PayPal URL 和端点:

$API_Endpoint = "https://api-3t.sandbox.paypal.com/nvp";

$PAYPAL_URL = "https://www.sandbox.paypal.com/webscr?cmd=_express-checkout-mobile&useraction=commit&token=";

移动视图无法正常工作 还有一件事我想向主要经销商设置 5% 的佣金。,这在移动快速结账中可能吗...?

提前致谢....

The Following codings does not working for me.,The amount doesn't paid to relevant merchant id's i provided.,any mistakes are happen on my codings.,Is any body well known in this means i need help for this ASAP...

$nvpstr.="&METHOD=SetExpressCheckout
&RETURNURL=http://project.websolusionz.com/paypal/demo/thanks.php
&CANCELURL=http://project.websolusionz.com/paypal/demo/cart.php
&PAYMENTACTION=Sale
&PAYMENTREQUEST_0_CURRENCYCODE=USD
&PAYMENTREQUEST_0_AMT=0.1
&PAYMENTREQUEST_0_ITEMAMT=0.1
&PAYMENTREQUEST_0_DESC0=My Product (Product1)
&PAYMENTREQUEST_0_SELLERPAYPALACCOUNTID=merch1_1305546355_biz@gmail.com
&PAYMENTREQUEST_0_PAYMENTREQUESTID=CART26488-PAYMENT0
&L_PAYMENTREQUEST_0_NAME0=My Product (Product 1)
&L_PAYMENTREQUEST_0_QTY0=1
&L_PAYMENTREQUEST_0_AMT0=0.1

&PAYMENTREQUEST_1_CURRENCYCODE=USD
&PAYMENTREQUEST_1_AMT=0.1
&PAYMENTREQUEST_1_ITEMAMT=0.1
&PAYMENTREQUEST_1_DESC1=My Product (Product 5)
&PAYMENTREQUEST_1_SELLERPAYPALACCOUNTID=merch2_1305546449_biz@gmail.com
&PAYMENTREQUEST_1_PAYMENTREQUESTID=CART26488-PAYMENT1
&L_PAYMENTREQUEST_1_NAME1=My Product (Product 5)
&L_PAYMENTREQUEST_1_QTY1=1
&L_PAYMENTREQUEST_1_AMT1=0.1";

My PayPal URL And End Point :

$API_Endpoint = "https://api-3t.sandbox.paypal.com/nvp";

$PAYPAL_URL = "https://www.sandbox.paypal.com/webscr?cmd=_express-checkout-mobile&useraction=commit&token=";

Mobile View is not working correctly And one more thing i want to set up the 5% commission to the main dealer.,Is this possible in mobile express checkout...?

Thanks in advance....

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

终陌 2024-11-15 19:38:27

将端点更改为 https://api-3t.sandbox.paypal.com/nvp并将您的重定向 URL 重定向到 https: //www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&useraction=commit&token=XXXX - 您当前正在使用沙盒帐户 ([email protected]) 并重定向到 Live URL。

您需要针对 Sandbox NVP 端点(如上所示)使用 Sandbox 卖家帐户的 API 凭据。乍一看,API 调用本身看起来不错。

Change your endpoint to https://api-3t.sandbox.paypal.com/nvp and your redirect URL to https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&useraction=commit&token=XXXX - you're currently using Sandbox accounts ([email protected]) on the Live endpoint and redirecting to the Live URL.

You'll need to use the API credentials of your Sandbox seller account against the Sandbox NVP endpoint (shown above). The API call itself looks fine at first glance.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文