gpt4 book ai didi

paypal - 自适应支付部分退款功能

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

我正在发送如下请求并得到响应错误。请帮助我做错了什么。谢谢。

我的请求:-

requestEnvelope.errorLanguage=en_US
&requestEnvelope.detailLevel=ReturnAll
&payKey=AP-0VR709562K128704J
&receiverList.receiver(0).email=buyer@abc.com
&receiverList.receiver(0).amount=14.00
¤cyCode=GBP
< br/>我的回应:-

Array
(
[responseEnvelope.timestamp] => 2017-02-24T05:50:55.589-08:00
[responseEnvelope.ack] => Failure
[responseEnvelope.correlationId] => 66bf1bad1aa91
[responseEnvelope.build] => 30051544
[error(0).errorId] => 589037
[error(0).domain] => PLATFORM
[error(0).subdomain] => Application
[error(0).severity] => Error
[error(0).category] => Application
[error(0).message] => The refund's receiver buyer@abc.com wasn't part of the payment request
[error(0).parameter(0)] => buyer@abc.com
)

最佳答案

我有一个解决方案。根据要求,我们需要发送收件人(卖家)电子邮件而不是买家电子邮件,它会自动将退款发送给相应的收件人。

所以答案会是

requestEnvelope.errorLanguage=en_US
&requestEnvelope.detailLevel=ReturnAll
&payKey=AP-0VR709562K128704J
&receiverList.receiver(0).email=api_email@apiemail.com
&receiverList.receiver(0).amount=14.00
¤cyCode=GBP

我们会得到这样的回应

Array
(
[responseEnvelope.timestamp] => 2017-04-05T07:34:25.622-07:00
[responseEnvelope.ack] => Success
[responseEnvelope.correlationId] => 3a31df57541f3
[responseEnvelope.build] => 31096492
[currencyCode] => GBP
[refundInfoList.refundInfo(0).receiver.amount] => 19.02
[refundInfoList.refundInfo(0).receiver.email] => api_email@apiemail.com
[refundInfoList.refundInfo(0).refundStatus] => REFUNDED
[refundInfoList.refundInfo(0).refundNetAmount] => 18.37
[refundInfoList.refundInfo(0).refundFeeAmount] => 0.65
[refundInfoList.refundInfo(0).refundGrossAmount] => 19.02
[refundInfoList.refundInfo(0).totalOfAllRefunds] => 39.04
[refundInfoList.refundInfo(0).refundHasBecomeFull] => false
[refundInfoList.refundInfo(0).encryptedRefundTransactionId] => 00487139PD976194Y
[refundInfoList.refundInfo(0).refundTransactionStatus] => COMPLETED
)

关于paypal - 自适应支付部分退款功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42440433/

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