Skip to content

Commit a2a90b9

Browse files
authored
Merge pull request #219 from wmde/add-feechange-type
Add new feechange payment type to the list
2 parents b3fadfd + 833e515 commit a2a90b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Services/PaymentURLFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use WMDE\Fundraising\PaymentContext\Domain\Model\BankTransferPayment;
88
use WMDE\Fundraising\PaymentContext\Domain\Model\CreditCardPayment;
99
use WMDE\Fundraising\PaymentContext\Domain\Model\DirectDebitPayment;
10+
use WMDE\Fundraising\PaymentContext\Domain\Model\FeeChangePayment;
1011
use WMDE\Fundraising\PaymentContext\Domain\Model\Payment;
1112
use WMDE\Fundraising\PaymentContext\Domain\Model\PayPalPayment;
1213
use WMDE\Fundraising\PaymentContext\Domain\Model\SofortPayment;
@@ -40,6 +41,7 @@ public function createURLGenerator( Payment $payment, URLAuthenticator $authenti
4041
$payment instanceof PayPalPayment => $this->createPayPalUrlGenerator( $payment, $authenticator ),
4142
$payment instanceof DirectDebitPayment => new ConfirmationPageUrlGenerator( $this->confirmationPageUrl, $authenticator ),
4243
$payment instanceof BankTransferPayment => new ConfirmationPageUrlGenerator( $this->confirmationPageUrl, $authenticator ),
44+
$payment instanceof FeeChangePayment => new ConfirmationPageUrlGenerator( $this->confirmationPageUrl, $authenticator ),
4345
default => throw new \InvalidArgumentException( 'Unknown payment type: ' . get_class( $payment ) ),
4446
};
4547
}

0 commit comments

Comments
 (0)