自适应支付部分退款功能

Posted

技术标签:

【中文标题】自适应支付部分退款功能【英文标题】:Adaptive Payment Partial Refund Functionality 【发布时间】:2017-07-15 09:23:36 【问题描述】:

我正在发送如下请求并收到错误响应。请帮助我做错了什么。谢谢。 我的要求:- requestEnvelope.errorLanguage=zh_CN&requestEnvelope.detailLevel=ReturnAll &payKey=AP-0VR709562K128704J&receiverList.receiver(0).email=buyer@abc.com&receiverList.receiver(0).amount=14.00¤cyCode=GBP 我的回应:-

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
)

【问题讨论】:

请帮助我解决这个问题。我非常需要解决方案。谢谢 【参考方案1】:

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

所以答案是

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
)

【讨论】:

以上是关于自适应支付部分退款功能的主要内容,如果未能解决你的问题,请参考以下文章

如何使用自适应贝宝 API 退还部分金额

申请PayPal自适应支付,填写表格

PayPal 自适应付款退款问题

Paypal自适应退款

我应该使用啥进行链式支付,它提供了与 PayPal 自适应支付相同的功能?

IOS SDK 中的自适应支付