Refunding transaction

Refund functionality can be used for all supported payment methods. Depending on the payment method, customer will see the paid funds returned to him in 2 to 15 days.

Refund

To refund a transaction, just provide an amount and an UID for the previously created transaction.

gateway.transaction().refund("txn_5uErTAjnRBTKpL", new BigDecimal("2.99"));

Rules

  • Only transactions in which the money was previously successfuly charged can be refunded
  • You can refund the full or lower amount than the one initially charged
  • If you just authorized a payment on a credit card, just use Void instead to release the funds.