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.

$transaction = Pencepay_Transaction::refund('transaction_uid', $amount);

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.