通过 SetExpressCheckout 方法调用重定向到 Paypal 网站后,Paypal 不显示项目列表 [Multiple] [英] Paypal does not show item list [Multiple] after redirection to Paypal Website by SetExpressCheckout method call

查看:40
本文介绍了通过 SetExpressCheckout 方法调用重定向到 Paypal 网站后,Paypal 不显示项目列表 [Multiple]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用以下详细信息成功调用 SetExpressCheckout,并在从 Paypal 服务器获得 ACK 成功后代码将用户重定向到 PayPal,我希望在 PayPal 页面上显示重定向的用户详细信息以及运费和折扣金额.

I made a successful SetExpressCheckout call with following details and code redirects user to PayPal after getting an ACK success from Paypal Server, I expect to show redirected user itemized details on PayPal page with shipping and discount amount as well.

SetExpressCheckout 请求详细信息

SetExpressCheckout Request Detail

METHOD=SetExpressCheckout&
VERSION=93&
PWD=<PASSWORD>&
USER=<USER>&
SIGNATURE=<SIGNATURE>&
PAYMENTREQUEST_0_AMT=85.0&
PAYMENTREQUEST_0_PAYMENTACTION=Sale&
ReturnUrl=<REDIRECT_URL>&
CANCELURL=<CANCEL_URL>&
PAYMENTREQUEST_0_CURRENCYCODE=USD&
L_PAYMENTREQUEST_n_NAME0=Electronics+Gift+Card&
L_PAYMENTREQUEST_n_NUMBER0=0&
L_PAYMENTREQUEST_n_AMT0=85.00&
L_PAYMENTREQUEST_n_QTY0=1&
L_PAYMENTREQUEST_n_ITEMCATEGORY0=Digital&
BUTTONSOURCE=PP-ECWizard

目前上面的要求不包括运费,但当它有一些实物时我有一个.

类似问题所以

上述问题仅将我引向 PayPal MT 支持,并且他们启用了我的订单项支持.但是Paypal仍然没有显示如图所示的项目详细信息.

The above question only lead me to PayPal MTs Support and they have enabled my line item support. but still Paypal do not show item detail as shown in the figure.

我该怎么做,PayPal 将显示所有项目 [<11] 在 PayPal 页面上.

what should i do so PayPal will show all the items [< 11] on the PayPal page.

看到以上所有细节,我做错了什么吗?

by seeing all the above detail am i doing anything wrong ?

请随时向我询问上述描述中缺少的任何信息.

fill free to ask me any missing information from above description.

谢谢米希尔·帕雷克

推荐答案

默认情况下为 Express Checkout 启用订单项支持 afaik.因此,当您说启用它时,您可能启用的是 Payflow 的订单项详细信息.. 但这不是重点.

Line item support is enabled for Express Checkout by default afaik. So what you probably enabled when you say you enabled it was line item details for Payflow.. but that's besides the point.

得到您的答案,您的订单项详细信息以n作为付款索引列出,应该替换为 0, 1, 2, 3, 4, 5, 6, 7、8、9 或 10,具体取决于项目所属的付款方式.(如果您想了解更多信息,请查看 PayPal 的并行支付,但在了解更多基础知识后再进行).所以基本上,为了解决您的问题,您将每个订单项参数的 'n' 替换为 '0',减去引号.见下文:

Getting to your answer, your line item details are listed with n as the index for the payment, which should be replaced with 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 or 10, depending on which payment the items belong to. (Look into PayPal's parallel payments if you want more information, but do it later once you understand more about the basics). So basically, to fix your issue, you replace the 'n' with '0' for each line item parameter, minus the quotes. See below:

USER=sgtpooki@**********
PWD=***************
SIGNATURE=********************
METHOD=SetExpressCheckout
VERSION=*************
RETURNURL=***********
CANCELURL=************
PAYMENTREQUEST_0_PAYMENTACTION=Sale 
PAYMENTREQUEST_0_AMT=85.00 
PAYMENTREQUEST_0_CURRENCYCODE=USD 
PAYMENTREQUEST_0_DESC=test EC payment 
PAYMENTREQUEST_0_CURRENCYCODE=USD 
L_PAYMENTREQUEST_n_NAME0=Electronics+Gift+Card 
L_PAYMENTREQUEST_n_NUMBER0=0 
L_PAYMENTREQUEST_n_AMT0=85.00 
L_PAYMENTREQUEST_n_QTY0=1 
L_PAYMENTREQUEST_n_ITEMCATEGORY0=Digital 
BUTTONSOURCE=PP-ECWizard

将显示订单项详细信息

USER=sgtpooki@**********
PWD=***************
SIGNATURE=********************
METHOD=SetExpressCheckout
VERSION=*************
RETURNURL=***********
CANCELURL=************
PAYMENTREQUEST_0_PAYMENTACTION=Sale 
PAYMENTREQUEST_0_AMT=85.00 
PAYMENTREQUEST_0_CURRENCYCODE=USD 
PAYMENTREQUEST_0_DESC=test EC payment 
PAYMENTREQUEST_0_CURRENCYCODE=USD 
L_PAYMENTREQUEST_0_NAME0=Electronics+Gift+Card 
L_PAYMENTREQUEST_0_NUMBER0=0 
L_PAYMENTREQUEST_0_AMT0=85.00 
L_PAYMENTREQUEST_0_QTY0=1 
L_PAYMENTREQUEST_0_ITEMCATEGORY0=Digital 
BUTTONSOURCE=PP-ECWizard

请记住,要获取 EC 的订单项详细信息(这也是在 通过payflow 生成 EC 时),您必须至少发送名称、数量和金额.使用您的代码,PayPal 无法识别出您发送了其中任何一个,因为n"是无效的付款请求索引.

Remember that to get line item details for EC (this is also when the EC is being generated through payflow) you must send at least the name, quantity, and amount. With your code, PayPal wasn't recognizing that you sent any of them, because 'n' is an invalid payment request index.

这篇关于通过 SetExpressCheckout 方法调用重定向到 Paypal 网站后,Paypal 不显示项目列表 [Multiple]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆