gpt4 book ai didi

paypal - Adaptive Payments 支付已完成,尽管 actionType 是 CREATE

转载 作者:太空宇宙 更新时间:2023-11-03 15:40:28 25 4
gpt4 key购买 nike

使用 Adaptive Payments API我使用 API 方法获得了一个支付 key 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 就可以进行收费,但对于我的工作流程(我希望这对您有值(value)),Preapproval API 是可行的方法。

关于paypal - Adaptive Payments 支付已完成,尽管 actionType 是 CREATE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9155419/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com