paulgrafx
I recently started getting this message in the Payment Method section on the checkout page.
This shop don't support and payment method in this country ([any-country-code])
I looked through the backend payment settings and the appropriate countries where checked that matched the users country address. It turns out I needed to amend the following code and then it worked fine again - pixel/shop/components/CartContainer.php.
Change
$this->page['methods_list'] = $billingCountry && property_exists($billingCountry, 'code') ? $this->getPaymentMethodsList($billingCountry->code) : null;
to
$this->page['methods_list'] = isset($billingCountry) && array_key_exists('code', $billingCountry->toArray()) ? $this->getPaymentMethodsList($billingCountry->code) : null;
I am unsure if this is a php version issue? But hope this helps anybody else having the same issue.
Last updated
1-2 of 2