Skip to content

Commit

Permalink
Adding DE to allowed_customer_types (#614)
Browse files Browse the repository at this point in the history
The setting for allowed_customer_types has been updated to now also include DE (Germany).
  • Loading branch information
a-larsson authored Sep 4, 2024
1 parent 43bdf58 commit 7b00268
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/class-kco-fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public static function fields() {
'B2CB' => __( 'B2C & B2B (defaults to B2C)', 'klarna-checkout-for-woocommerce' ),
'B2BC' => __( 'B2B & B2C (defaults to B2B)', 'klarna-checkout-for-woocommerce' ),
),
'description' => __( 'Select if you want to sell both to consumers and companies or only to one of them (available for SE, NO and FI). You need to contact Klarna directly to activate this with your account.', 'klarna-checkout-for-woocommerce' ),
'description' => __( 'Select if you want to sell both to consumers and companies or only to one of them (available for SE, NO, FI and DE). You need to contact Klarna directly to activate this with your account.', 'klarna-checkout-for-woocommerce' ),
'default' => 'B2C',
'desc_tip' => false,
),
Expand Down
2 changes: 1 addition & 1 deletion classes/requests/helpers/class-kco-request-options.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private function get_nin_validation_mandatory() {
*/
private function get_allowed_customer_types() {

if ( in_array( $this->get_purchase_country(), array( 'SE', 'NO', 'FI' ), true ) && isset( $this->settings['allowed_customer_types'] ) ) {
if ( in_array( $this->get_purchase_country(), array( 'SE', 'NO', 'FI', 'DE' ), true ) && isset( $this->settings['allowed_customer_types'] ) ) {
$customer_types_setting = $this->settings['allowed_customer_types'];

switch ( $customer_types_setting ) {
Expand Down

0 comments on commit 7b00268

Please sign in to comment.