paypal doExpressCheckoutPayment每次无效的PayerID [英] paypal doExpressCheckoutPayment invalid PayerID every single time

查看:367
本文介绍了paypal doExpressCheckoutPayment每次无效的PayerID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么PayPal的一切都如此疯狂?

这是我要发送给 https://api-3t.sandbox.paypal的内容. com/nvp :

METHOD = DoExpressCheckoutPayment&
VERSION = 108.0&
USER = my-sandbox-facilitator_api1.domain.com&
PWD =&
SIGNATURE =&
SUBJECT =&
令牌= EC-1GE68226PG526154U&
PAYERID = my-sandbox-buyer%40domain.com
PAYMENTREQUEST_0_PAYMENTACTION = SALE&
PAYMENTREQUEST_0_AMT = 19.95&
PAYMENTREQUEST_0_CURRENCYCODE = USD&
PAYMENTREQUEST_0_NOTIFYURL =

这就是我要回来的东西:

TIMESTAMP = 2015-12-12T21%3a35%3a34Z&
CORRELATIONID = d9a463bfa6bb4&
ACK =失败&
VERSION = 108.0&
BUILD = 18308778&
L_ERRORCODE0 = 10406&
L_SHORTMESSAGE0 =事务+拒绝+因为+的+无效+参数.+请参阅+其他+错误+消息+有关+详细信息.&
L_LONGMESSAGE0 = + PayerID + value +是+无效.&
L_SEVERITYCODE0 =错误

就在此之前,我没有任何问题地执行了METHOD = GetExpressCheckoutDetails.
PayerID对此不是无效的吗?!?!!
我有一个令牌,所以我进行了METHOD = SetExpressCheckout,没有任何问题.

有想法吗?
谷歌对我没有一个有效的答案.
PP的5(!)技术支持站点之一.

即使我在实时PP上重新配置并拍摄类似的事务,也是同样的问题.

https://developer.paypal.com/docs/classic/api /merchant/DoExpressCheckoutPayment_API_Operation_NVP/

Why is everything PayPal so crazy hard?

This is what I'm sending to https://api-3t.sandbox.paypal.com/nvp :

METHOD=DoExpressCheckoutPayment&
VERSION=108.0&
USER=my-sandbox-facilitator_api1.domain.com&
PWD=&
SIGNATURE=&
SUBJECT=&
TOKEN=EC-1GE68226PG526154U&
PAYERID=my-sandbox-buyer%40domain.com
PAYMENTREQUEST_0_PAYMENTACTION=SALE&
PAYMENTREQUEST_0_AMT=19.95&
PAYMENTREQUEST_0_CURRENCYCODE=USD&
PAYMENTREQUEST_0_NOTIFYURL=

This is what I'm getting back:

TIMESTAMP=2015-12-12T21%3a35%3a34Z&
CORRELATIONID=d9a463bfa6bb4&
ACK=Failure&
VERSION=108.0&
BUILD=18308778&
L_ERRORCODE0=10406&
L_SHORTMESSAGE0=Transaction+refused+because+of+an+invalid+argument.+See+additional+error+messages+for+details.&
L_LONGMESSAGE0=The+PayerID+value+is+invalid.&
L_SEVERITYCODE0=Error

Just before this I did a METHOD=GetExpressCheckoutDetails without any problems.
PayerID wasn't invalid for that?!?!!
I have a token so I did a METHOD=SetExpressCheckout without any problems.

Ideas?
No amount of Google had a working answer for me.
Either did PP's 5(!) tech support sites.

It is the same issue even if I reconfigure and and shoot a similar transaction at my live PP.

解决方案

PAYERID is a unique PayPal buyer account identification number as returned after SetExpressCheckout API call(after buyer login to paypal and gets redirected to your RETURN URL , you will need to copy that PAyer Id and use in Doexpresscheckout request. Payer is a 13 single-byte alphanumeric character and not an email address.

https://developer.paypal.com/docs/classic/api/merchant/DoExpressCheckoutPayment_API_Operation_NVP/

这篇关于paypal doExpressCheckoutPayment每次无效的PayerID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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