gpt4 book ai didi

api - 无法转换货币 paypal pay API 错误

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

我正在使用 paypal 自适应支付 API。

https://svcs.sandbox.paypal.com/AdaptivePayments/Pay

请求载荷

{
"actionType":"PAY",
"memo":"Example",
"preapprovalKey":"PA-4PV844316B104562R",
"receiverList":{"receiver":{"amount":"14.00","email":"reveiver.email@gmail.com"}},
"currencyCode":"CHF",
"requestEnvelope":{"errorLanguage":"en_US"},
"pinType":"NOT_REQUIRED",
"feesPayer": "SENDER",
"senderEmail":"sender.email@gmail.com",
"returnUrl":"http://www.google.com/?paypal=ok",
"cancelUrl":"http://www.google.com/paypal=cancel",
"clientDetails": {
"applicationId": "APP-80W284485P789543T"
}
}

获得回应

    {
"responseEnvelope": {
"timestamp": "2018-11-05T20:45:14.602-08:00",
"ack": "Failure",
"correlationId": "1609b946b9c72",
"build": "50069244"
},
"error": [
{
"errorId": "520002",
"domain": "PLATFORM",
"subdomain": "Application",
"severity": "Error",
"category": "Application",
"message": "Internal Error",
"parameter": [
"Unable to convert currency"
]
}
]
}

如果我发送 currencyCode:"USD"那么它工作正常但是当我传递 currencyCode:"CHF"然后它给出错误响应。我所有的沙盒账户货币是瑞士法郎。直到 10 月 26 日它都在工作,但当我在 11 月 3 日检查时突然出错。

最佳答案

根据我的调试,当您有多个接收方、货币不是 USD 并且 reverseAllParallelPaymentsOnError 设置为 true 时,就会发生这种情况。

reverseAllParallelPaymentsOnError 设置为 false 时,事务正在推进。

虽然不是解决方案,但我仍在检查其他解决方案。

关于api - 无法转换货币 paypal pay API 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53166067/

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