• Resolved pvnanini

    (@pvnanini)


    Hello guys many thanks for your great plugin.

    I’ trying to setup the google pay method in test mode to take the screenshots to upload to google but when I click the Google Pay button I get this error https://snipboard.io/qBr7yb.jpg

    Any advice to fix it? Many thanks in advance

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Clayton R

    (@mrclayton)

    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

    Thread Starter pvnanini

    (@pvnanini)

    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)
    Plugin Author Clayton R

    (@mrclayton)

    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

    Thread Starter pvnanini

    (@pvnanini)

    Many thanks for your help bro!

    Plugin Author Clayton R

    (@mrclayton)

    @pvnanini You’re welcome.

    Good reviews are always appreciated. https://ww.wp.xz.cn/support/plugin/woo-stripe-payment/reviews/

    Kind Regards

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Google Pay Payment Test Error’ is closed to new replies.