Пример #1
0
 /**
  * @param Helper\Transaction $transaction
  */
 public function voidTransaction(Helper\Transaction $transaction)
 {
     $this->api('CreditTransaction', ['tran' => $this->tStreamXML(['TranCode' => 'VoidSaleByRecordNo', 'InvoiceNo' => $transaction->getTransactionId(), 'RefNo' => $transaction->getApiResponse('RefNo'), 'Amount' => ['Purchase' => number_format($transaction->getAmount(), 2, '.', '')], 'TranInfo' => ['AuthCode' => $transaction->getApiResponse('AuthCode'), 'AcqRefData' => $transaction->getApiResponse('AcqRefData'), 'ProcessData' => $transaction->getApiResponse('ProcessData')], 'RecordNo' => $transaction->getReferenceNumber(), 'Frequency' => 'OneTime'])]);
 }
Пример #2
0
 /**
  * @param Helper\Transaction $transaction
  */
 public function voidTransaction(Helper\Transaction $transaction)
 {
     $this->api('purchasecorrection', ['order_id' => md5($transaction->getTransactionId()), 'txn_number' => $transaction->getApiResponse('TransID'), 'crypt_type' => 7, 'dynamic_descriptor' => $this->dynamicDescriptor]);
 }