Skip to content

Commit

Permalink
Add limits per currency
Browse files Browse the repository at this point in the history
  • Loading branch information
Kārlis Janisels authored and Kārlis Janisels committed Oct 5, 2023
1 parent 0da57dc commit 1cec35e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions includes/payment-methods/class-klarna-payment-method.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,20 @@ public function __construct( $token_service ) {
$this->currencies = [ 'USD', 'GBP', 'EUR' ];
$this->accept_only_domestic_payment = true;
$this->countries = [ 'US', 'GB', 'AT', 'DE', 'NL', 'BE', 'ES', 'IT' ];
$this->limits_per_currency = [
'USD' => [
'min' => 1000,
'max' => 500000,
], // Represents USD 10 - 5,000 AUD.

This comment has been minimized.

Copy link
@kalessil

kalessil Oct 5, 2023

Contributor

AUD -> USD

'GBP' => [
'min' => 1000,
'max' => 500000,
], // Represents GBP 10 - 5,000 AUD.

This comment has been minimized.

Copy link
@kalessil

kalessil Oct 5, 2023

Contributor

AUD -> GBP

'EUR' => [
'min' => 1000,
'max' => 500000,
], // Represents EUR 10 - 5,000 AUD.

This comment has been minimized.

Copy link
@kalessil

kalessil Oct 5, 2023

Contributor

AUD -> EUR

];
}

/**
Expand Down

0 comments on commit 1cec35e

Please sign in to comment.