Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Entities/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 type for this 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);
}

Expand Down