Ejemplo n.º 1
0
 /**
  * Transaction reversal
  * @param  string $transId
  * @param  string $amount          reversal amount in fractional units (up to 12 characters). For DMS authorizations only full amount can be reversed, i.e., the reversal and authorization amounts have to match. In other cases partial reversal is also available.
  * @return array  RESULT, RESULT_CODE
  * RESULT         - OK              - successful reversal transaction
  *                  REVERSED        - transaction has already been reversed
  * 		    FAILED          - failed to reverse transaction (transaction status remains as it was)
  * RESULT_CODE    - reversal result code returned from Card Suite Processing RTPS (3 digits)
  * error          - In case of an error
  * warning        - In case of warning (reserved for future use).
  */
 public function revertTransaction($transId, $amount)
 {
     $args = array('command' => 'r', 'trans_id' => $transId, 'amount' => $amount);
     return parent::revertTransaction($args);
 }