有没有人使用网络资源退款。这是我的要求,但它只允许全额退款。
<?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>
答案 0 :(得分:3)
我们能够弄明白,Cybersource有一个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>