paypal – 自适应付款付款已完成,但actionType为CREATE

前端之家收集整理的这篇文章主要介绍了paypal – 自适应付款付款已完成,但actionType为CREATE前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
使用 Adaptive Payments API我使用API​​方法 Pay获取了一个付费密钥,其中包含以下参数:
actionType:                      CREATE
receiverList.receiver(0).email:  ...
receiverList.receiver(0).amount: 5
currencyCode:                    EUR
cancelUrl:                       ...
returnUrl:                       ...
requestEnvelope.errorLanguage:   en_US

然后我用这个URL启动了嵌入式支付流程:
https://www.sandbox.paypal.com/webapps/adaptivepayment/flow/pay?expType=light&payKey=

灯箱再次关闭后,当我在付费键上调用PaymentDetails方法时,它会给我(以及其他值):

paymentInfoList.paymentInfo(0).transactionStatus: COMPLETED
status:                                           COMPLETED
actionType:                                       CREATE

显然付款已经执行,但我还没有调用ExecutePay方法.

docs状态(在“PayRequest字段”主题下):

actionType xs:string

(required) Whether the Pay request pays the receiver or whether the
Pay request is set up to create a payment request,but not fulfill the
payment until the ExecutePayment is called.

Allowable values are:
[…]
CREATE – Use this option to set up the payment instructions with SetPaymentOptions and then execute the payment at a later time with
the ExecutePayment.

我错过了什么?

解决方法

我们最终只使用Preapproval API并使用它调用Pay.在回复中,我收到了电子邮件,我被告知:
"PayPal does not allow you to hold any amount of money in somebody else's PayPal account     and that is why we have Preapproval API."

我仍然不确定为什么Create似乎在不需要ExecutePayment调用的情况下收取费用,但对于我的工作流程(我希望对您有价值),Preapproval API是可行的方法.

原文链接:https://www.f2er.com/css/217542.html

猜你在找的CSS相关文章