我正在尝试使用Laravel上的omnipay NAB Transact创建退款流程。我正在使用安全XML付款来处理交易。收费后,交易会获得批准(LINK),但是,如果我尝试退款,则会收到错误 ( +“ responseText”:“信用卡详细信息不可用” )
$gateway = Omnipay::create('NABTransact_SecureXML');
$gateway->setMerchantId('XYZ0010');
$gateway->setTransactionPassword('abcd1234');
$gateway->setTestMode(true);
$refund = $gateway->refund([
'transactionReference' => "m5wh398n",
'amount' => "5.00",
'currency' => "AUD",
'transactionId' => "854614",
'txnID' => "854614",
]);
dd($refund->send());
交易参考号为:m5wh398n
交易ID为:854614
我得到的错误是:
data: SimpleXMLElement {#325 ▼
+"MessageInfo": SimpleXMLElement {#337 ▶}
+"RequestType": "Payment"
+"MerchantInfo": SimpleXMLElement {#339 ▶}
+"Status": SimpleXMLElement {#330 ▶}
+"Payment": SimpleXMLElement {#336 ▼
+"TxnList": SimpleXMLElement {#335 ▼
+"@attributes": array:1 [▶]
+"Txn": SimpleXMLElement {#354 ▼
+"@attributes": array:1 [▶]
+"txnType": "4"
+"txnSource": "23"
+"amount": "500"
+"currency": "AUD"
+"purchaseOrderNo": "854614"
+"approved": "No"
+"responseCode": "133"
**+"responseText": "Credit card details not available"**
+"settlementDate": SimpleXMLElement {#357}
+"txnID": SimpleXMLElement {#358}
+"authID": SimpleXMLElement {#359}
+"CreditCardInfo": SimpleXMLElement {#360 ▼
+"pan": SimpleXMLElement {#365}
+"expiryDate": SimpleXMLElement {#366}
+"cardType": "0"
+"cardDescription": SimpleXMLElement {#367}
我尝试搜索很多,但不幸的是没有太多可用的主题。
任何帮助/建议表示赞赏!
谢谢