首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >适应性付款部分退款功能

适应性付款部分退款功能
EN

Stack Overflow用户
提问于 2017-02-24 13:55:19
回答 1查看 97关注 0票数 1

我发送的请求如下,并得到错误的回应。请帮帮我我做错了什么。谢谢。

我的要求:-

requestEnvelope.errorLanguage=en_US

&requestEnvelope.detailLevel=ReturnAll

与付费键=AP-0VR709562K128704J

&receiverList.receiver(0).email=buyer@abc.com

&receiverList.receiver(0).amount=14.00

¤cyCode=GBP

我的回应是:-

代码语言:javascript
复制
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
)
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-04-05 14:43:32

我有办法解决这个问题。在要求,我们需要发送接收者(卖方)电子邮件,而不是买方的电子邮件,它将自动发送退款给适当的接收者。

所以答案是

代码语言:javascript
复制
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

我们会得到这样的回应

代码语言:javascript
复制
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
)
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42440433

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档