如何在Cyber​​source Simple Order API中实现部分退款

时间:2016-05-19 01:24:38

标签: xml payment-gateway

有没有人使用网络资源退款。这是我的要求,但它只允许全额退款。

 <?xml version="1.0" encoding="UTF-8"?>
 <requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.126">
    <merchantID>brandbank_au_test</merchantID>
    <merchantReferenceCode>437802</merchantReferenceCode>
    <purchaseTotals>
    <currency>AUD</currency>
    <grandTotalAmount>69.12</grandTotalAmount>
   </purchaseTotals>
   <ccAuthReversalService run="false">
    <authRequestID>2J580114GU137032F</authRequestID>
   </ccAuthReversalService>
 </requestMessage>

1 个答案:

答案 0 :(得分:3)

我们能够弄明白,Cyber​​source有一个ccCreditRequest API用于部分退款。以下是如何使用它的示例。

  <?xml version="1.0" encoding="UTF-8"?>
   <requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.126">
      <merchantID>merchantId</merchantID>
      <merchantReferenceCode>437694</merchantReferenceCode>
      <purchaseTotals>
      <currency>AUD</currency>
      <grandTotalAmount>10.0</grandTotalAmount>
      </purchaseTotals>
      <ccCreditService run="true">
          <captureRequestID>4636277164366228701011</captureRequestID>
       </ccCreditService>
     </requestMessage>