From 00184ffb5146b42a8afb943341effe42c1742339 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 9 Nov 2022 08:31:40 +1100 Subject: [PATCH] Access country --- app/PaymentDrivers/WePay/ACH.php | 2 +- app/PaymentDrivers/WePay/CreditCard.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/PaymentDrivers/WePay/ACH.php b/app/PaymentDrivers/WePay/ACH.php index 6c0b8a263cc2..ea09cd0c9937 100644 --- a/app/PaymentDrivers/WePay/ACH.php +++ b/app/PaymentDrivers/WePay/ACH.php @@ -41,7 +41,7 @@ class ACH public function authorizeView($data) { $data['gateway'] = $this->wepay_payment_driver; - $data['country_code'] = $this->wepay_payment_driver?->client?->country ? $this->wepay_payment_driver->client->country->iso_3166_2 : $this->wepay_payment_driver->company_gateway->company()->iso_3166_2; + $data['country_code'] = $this->wepay_payment_driver?->client?->country ? $this->wepay_payment_driver->client->country->iso_3166_2 : $this->wepay_payment_driver->company_gateway->company->country()->iso_3166_2; return render('gateways.wepay.authorize.bank_transfer', $data); } diff --git a/app/PaymentDrivers/WePay/CreditCard.php b/app/PaymentDrivers/WePay/CreditCard.php index 0d868093dd1b..8c7d5ed42027 100644 --- a/app/PaymentDrivers/WePay/CreditCard.php +++ b/app/PaymentDrivers/WePay/CreditCard.php @@ -37,7 +37,7 @@ class CreditCard public function authorizeView($data) { $data['gateway'] = $this->wepay_payment_driver; - $data['country_code'] = $this->wepay_payment_driver?->client?->country ? $this->wepay_payment_driver->client->country->iso_3166_2 : $this->wepay_payment_driver->company_gateway->company()->iso_3166_2; + $data['country_code'] = $this->wepay_payment_driver?->client?->country ? $this->wepay_payment_driver->client->country->iso_3166_2 : $this->wepay_payment_driver->company_gateway->company->country()->iso_3166_2; return render('gateways.wepay.authorize.authorize', $data); }