Skip to content

Commit 839ca04

Browse files
author
Chris Gårdenberg
committed
Release 1.2.1master
fix: It's the merchant country, not the end customer
1 parent f60c20d commit 839ca04

3 files changed

Lines changed: 5 additions & 9 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ Stats
2828

2929
== Changelog ==
3030

31+
### 1.2.1
32+
33+
- fix: `purchase_country` is supposed to be the merchant country.
34+
3135
### 1.2.0
3236

3337
This version required EduAdmin Booking version 2.13.0 to work properly

class-edu-klarnacheckout.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -184,14 +184,6 @@ public function create_checkout( $ebi = null ) {
184184
$organization = EDUAPIHelper()->GetOrganization();
185185
$purchase_country = $organization["CountryCode"];
186186

187-
if ( ! empty( $ebi->Customer["CountryCode"] ) ) {
188-
$purchase_country = $ebi->Customer["CountryCode"];
189-
190-
if ( ! empty( $ebi->Customer["BillingInfo"]["CountryCode"] ) ) {
191-
$purchase_country = $ebi->Customer["BillingInfo"]["CountryCode"];
192-
}
193-
}
194-
195187
$create['locale'] = strtolower( str_replace( '_', '-', get_locale() ) );
196188
$create['purchase_country'] = $purchase_country;
197189
$create['purchase_currency'] = get_option( 'eduadmin-currency', 'SEK' );

eduadmin-wp-klarna-checkout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Plugin Name: EduAdmin Booking - Klarna Checkout-plugin
66
* Plugin URI: https://www.eduadmin.se
77
* Description: Plugin to EduAdmin Booking to enable Klarna Checkout-integration
8-
* Version: 1.2.0
8+
* Version: 1.2.1
99
* GitHub Plugin Uri: https://github.com/MultinetInteractive/eduadmin-wp-klarna-checkout
1010
* Requires at least: 4.7
1111
* Tested up to: 5.2

0 commit comments

Comments
 (0)