Skip to content

Commit

Permalink
Revert "Defaulting to store country"
Browse files Browse the repository at this point in the history
This reverts commit 2547233.
  • Loading branch information
gpressutto5 committed Jan 9, 2024
1 parent 94920be commit 86f570e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/class-wc-payment-gateway-wcpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public function __construct(
$this->localization_service = $localization_service;
$this->fraud_service = $fraud_service;

$account_country = $this->get_account_country( wc_get_base_location()['country'] ?? 'US' );
$account_country = $this->get_account_country();
$this->id = static::GATEWAY_ID;
$this->icon = $payment_method->get_icon( $account_country );
$this->has_fields = true;
Expand Down Expand Up @@ -2877,7 +2877,7 @@ public function get_account_country( string $default_value = 'US' ): string {
if ( $this->is_connected() ) {
return $this->account->get_account_country() ?? $default_value;
}
} catch ( \Throwable $e ) {
} catch ( Exception $e ) {
Logger::error( 'Failed to get account country.' . $e );
}
return $default_value;
Expand Down

0 comments on commit 86f570e

Please sign in to comment.