Skip to content

Commit 7bbd5bf

Browse files
Stick to interface.
1 parent 0be79a8 commit 7bbd5bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/base/Gateway.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -363,14 +363,14 @@ public function purchase(Transaction $transaction, BasePaymentForm $form): Reque
363363
/**
364364
* @inheritdoc
365365
*/
366-
public function refund(Transaction $transaction, string $reference): RequestResponseInterface
366+
public function refund(Transaction $transaction, float $amount): RequestResponseInterface
367367
{
368368
if (!$this->supportsRefund()) {
369369
throw new NotSupportedException(Craft::t('commerce', 'Refunding is not supported by this gateway'));
370370
}
371371

372372
$request = $this->createRequest($transaction);
373-
$refundRequest = $this->prepareRefundRequest($request, $reference);
373+
$refundRequest = $this->prepareRefundRequest($request, $transaction->reference);
374374

375375
return $this->performRequest($refundRequest, $transaction);
376376
}

0 commit comments

Comments
 (0)