From 73434d2c057289387a749476d06f7730d9a6e9ac Mon Sep 17 00:00:00 2001 From: Algie Caballes Date: Mon, 7 Oct 2019 15:14:59 +0800 Subject: [PATCH] Added currency as require to process refund --- src/Entities/Transaction.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Entities/Transaction.php b/src/Entities/Transaction.php index ffae75b6..793b8714 100644 --- a/src/Entities/Transaction.php +++ b/src/Entities/Transaction.php @@ -319,13 +319,15 @@ public function hold() * Refunds/returns the original transaction. * * @param string|float $amount The amount to refund/return + * @param string $currency The currency to refund/return * * @return ManagementBuilder */ - public function refund($amount = null) + public function refund($amount = null, $currency = null) { return (new ManagementBuilder(TransactionType::REFUND)) ->withPaymentMethod($this->transactionReference) + ->withCurrency($currency) ->withAmount($amount); }