Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Klarna payment method #58

Merged
merged 1 commit into from
Oct 11, 2024
Merged
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
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 @@
$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 @@
[
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
Loading