Skip to content

Commit

Permalink
Merge pull request #58 from pronamic/57-add-klarna-payment-method
Browse files Browse the repository at this point in the history
Add Klarna payment method
  • Loading branch information
rvdsteege authored Oct 11, 2024
2 parents d9dce48 + 3c870b7 commit 610d9ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ function () {
$this->register_payment_method( $payment_method_kbc );

// Klarna.
$this->register_payment_method( new PaymentMethod( PaymentMethods::KLARNA ) );

Check failure on line 235 in src/Gateway.php

View workflow job for this annotation

GitHub Actions / phpstan / phpstan

Access to undefined constant Pronamic\WordPress\Pay\Core\PaymentMethods::KLARNA.
$this->register_payment_method( new PaymentMethod( PaymentMethods::KLARNA_PAY_LATER ) );
$this->register_payment_method( new PaymentMethod( PaymentMethods::KLARNA_PAY_NOW ) );
$this->register_payment_method( new PaymentMethod( PaymentMethods::KLARNA_PAY_OVER_TIME ) );
Expand Down Expand Up @@ -1018,6 +1019,7 @@ private function get_resource_for_payment( Payment $payment ): string {
[
PaymentMethods::BILLIE,
PaymentMethods::IN3,
PaymentMethods::KLARNA,

Check failure on line 1022 in src/Gateway.php

View workflow job for this annotation

GitHub Actions / phpstan / phpstan

Access to undefined constant Pronamic\WordPress\Pay\Core\PaymentMethods::KLARNA.
PaymentMethods::KLARNA_PAY_NOW,
PaymentMethods::KLARNA_PAY_LATER,
PaymentMethods::KLARNA_PAY_OVER_TIME,
Expand Down

0 comments on commit 610d9ef

Please sign in to comment.