【问题标题】:How to make paypal partial refund with Classic API?如何使用 Classic API 进行 paypal 部分退款?
【发布时间】:2014-01-12 14:59:00
【问题描述】:

我使用自适应付款进行付款。 如何进行部分退款?似乎在这里回答https://developer.paypal.com/webapps/developer/docs/classic/api/adaptive-payments/Refund_API_Operation/。但是我必须进行什么 API 调用之王?

【问题讨论】:

    标签: api paypal


    【解决方案1】:

    自适应支付 API 使用 XML。这是退款请求和响应的示例,尽管我的响应与平时略有不同,因为我已经处理了此特定退款。

    <?xml version="1.0" encoding="utf-8"?>
    <RefundRequest xmlns="http://svcs.paypal.com/types/ap">
      <requestEnvelope xmlns="">
        <detailLevel>ReturnAll</detailLevel>
        <errorLanguage>en_US</errorLanguage>
      </requestEnvelope>
      <currencyCode xmlns="">USD</currencyCode>
      <receiverList xmlns="">
        <receiver xmlns="">
          <amount xmlns="">100.00</amount>
          <email xmlns="">agb_1296755685_biz@angelleye.com</email>
          <paymentType xmlns="">GOODS</paymentType>
        </receiver>
      </receiverList>
      <transactionId xmlns="">9JK32129X69021028</transactionId>
    </RefundRequest>
    
    <?xml version='1.0' encoding='UTF-8'?>
    <ns2:RefundResponse xmlns:ns2="http://svcs.paypal.com/types/ap">
      <responseEnvelope>
        <timestamp>2013-12-25T22:54:01.871-08:00</timestamp>
        <ack>Success</ack>
        <correlationId>5d44463c7350c</correlationId>
        <build>7935900</build>
      </responseEnvelope>
      <currencyCode>USD</currencyCode>
      <refundInfoList>
        <refundInfo>
          <receiver>
            <amount>100.00</amount>
            <email>agb_1296755685_biz@angelleye.com</email>
          </receiver>
          <refundStatus>ALREADY_REVERSED_OR_REFUNDED</refundStatus>
          <refundHasBecomeFull>true</refundHasBecomeFull>
        </refundInfo>
      </refundInfoList>
    </ns2:RefundResponse>
    

    【讨论】:

      猜你喜欢
      • 2014-02-13
      • 2014-04-03
      • 2017-07-24
      • 2016-06-21
      • 2014-09-23
      • 2014-03-21
      • 1970-01-01
      • 2015-11-05
      • 2015-09-29
      相关资源
      最近更新 更多