Hi @pvnanini
I see your country code is SLM. Is that the correct store address? I recommend changing that to Spain and see if the issue continues.
Kind Regards
I’ve changed the country to spain and the Google Pay API payment screen loads the without problem but I can’t make the test payment to get the the Post-purchase screen.
When I hit the pay button nothing happend and I can see these error in the browser console:
api-fetch.min.js:2
POST https://nutrimedicinas.org/es/wp-json/wc/store/v1/checkout?_locale=site 400 (Bad Request)
Hi @pvnanini
You appear to have settings enabled that restrict the countries you sell to. Here is the response from your server:
{
"code": "woocommerce_rest_invalid_address_country",
"message": "Lo siento, no admitimos pedidos desde el pa\u00eds indicado (US)",
"data": {
"allowed_countries": [
"DE",
"AD",
"AR",
"AT",
"BE",
"DK",
"ES",
"FR",
"GI",
"GR",
"IE",
"IT",
"LU",
"NO",
"NL",
"PT",
"GB",
"SE",
"CH"
],
"status": 400
}
}
Google Pay uses a US billing address by default in test mode. You need to enable US temporarily as a country you sell to.
Kind Regards
Many thanks for your help bro!