• Resolved Dennis Jonda

    (@dejonda)


    Hey its me again, I have a problem with the new checkout from WooCommerce Blocks, somehow the payment is not working when I pay with Google Pay.

    I noticed that the addresses are missing every time I am directed to the checkout by Google Pay.

    Maybe the two PHP notices will help:

    [28-Feb-2023 18:51:38 UTC] PHP Notice:  Undefined index: state in /usr/www/users/agnesek/wp-content/plugins/woo-stripe-payment/includes/wc-stripe-functions.php on line 335

    [28-Feb-2023 18:51:38 UTC] PHP Notice:  Undefined index: state in /usr/www/users/agnesek/wp-content/plugins/woo-stripe-payment/includes/wc-stripe-functions.php on line 336

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

    (@mrclayton)

    Hi @dejonda

    Please provide the following:

    1. Version of WC
    2. Version of WooCommerce Blocks if you’re using it as a separate plugin
    3. Stripe plugin version
    4. Are you using the GPay gateway, or the Payment Request Gateway which supports GPay?

    Kind Regards

    Thread Starter Dennis Jonda

    (@dejonda)

    Hello @mrclayton,
    thank you very much for your fast reply.

    1. Version of WC: 7.4.0
    2. Version of WooCommerce Blocks if you’re using it as a separate plugin: 9.6.3
    3. Stripe plugin version: 3.3.38
    4. Are you using the GPay gateway, or the Payment Request Gateway which supports GPay?: I’m using the GPay gateway.

    Thank you and kind regards

    Plugin Author Clayton R

    (@mrclayton)

    I noticed that the addresses are missing every time I am directed to the checkout by Google Pay.

    So it looks like from the log files these are customers that are paying on the product or cart page and are being redirected to the checkout page because the “state” field is missing. Is that correct?

    The Stripe plugin will redirect the customer to the checkout page anytime some required field is missing like an address field.

    Kind Regards,

    Thread Starter Dennis Jonda

    (@dejonda)

    So as soon as I click on Google Pay, the address that was previously entered is deleted and it says that I have to enter a valid address. As soon as I enter the address, I can no longer click on the order button.

    Plugin Author Clayton R

    (@mrclayton)

    Hi @dejonda

    I did some testing and this looks like a WC Blocks issue. I am able to re-create the disabled place order button by simply clicking a saved payment method as well. All that logic is controlled by WC.

    We’ll have to take a closer look at what within WC Blocks is causing that.

    Kind Regards

    Thread Starter Dennis Jonda

    (@dejonda)

    Hey @mrclayton,
    I hope you are well.

    Have you perhaps been able to look into what the problem might be?

    Kind regards

    Plugin Author Clayton R

    (@mrclayton)

    Hi @dejonda

    Good timing, we just added a new issue to the WooCommerce Blocks showing what’s causing this behavior. https://github.com/woocommerce/woocommerce-blocks/issues/8785

    We’re going to be releasing version 3.3.39 soon which accounts for this change in behavior introduced in WC Blocks versions greater than 9.4.1.

    Kind Regards,

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

The topic ‘Woocommerce Blocks problem with Google Pay’ is closed to new replies.