• Hello.

    I have a question about the use of Google and Apple pay.

    When you click on the Google Pay button on the single product page in Woocommerce, you are not taken to the checkout page but it takes you directly to the order confirmation page. This way the user cannot select shipping methods. Is this the default behaviour? I am trying to understand how it works.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @more2think

    This way the user cannot select shipping methods. Is this the default behaviour?

    The default behavior is the Apple Pay/GPay wallet will allow the customer to select their desired shipping method. If your product requires shipping, then the wallets will display shipping options which your customer can select.

    If a product doesn’t require shipping, then no shipping options will display in the wallet.

    Kind Regards

    George Nicolaou

    (@orionaselite)

    Hi @mrclayton I am helping @more2think with this issue because we are friends outside of WP and he asked me to take a look at this yesterday. So I can explain what is going on in more dev terms if need be.

    So assume you on a single product page and you hit GPay this immediately goes to the thank you page without going thought checkout. The order goes through but of course no shipping method is selected. So although I have the persons’ address in the order I have no idea if they wanted “Home delivery” or “ACS (delivery) via courier”. These are all flat rate shipping methods I assumed because maybe @more2think has an account on the site it may be skipping this because he has previous orders or something. So I tried with my email because I don’t have an account on the site and the same thing happens

    The one thing I can say is that @more2think allows guest checkout if that makes a difference.

    Now if we go to checkout and then use gpay the user data is filled out from gpay but again in the gpay popup we don’t see the shipping methods we defined in Woocommerce to be able to select the one we want but after we close the gpay popup we can select a shipping method.

    The question is if the shipping method should be visible in the gpay popup on the single product page and the cart page or is it normal not to pick up the shipping methods defined on woocommerce inside the gpay popup?

    If this is normal then how will we know the shipping method if the user hit gpay on the productsingle page?

    Plugin Author Payment Plugins

    (@mrclayton)

    @orionaselite Per the previous reply you need to make sure the product has been configured to require shipping. The wallet based payment methods will only show shipping options if the product requires shipping. Everything you have described sounds like you’re testing a product that just hasn’t been configured to require shipping.

    Here is page showing an example of how it should work.

    The question is if the shipping method should be visible in the gpay popup on the single product page and the cart page?

    Yes, as long as the product/cart requires shipping.

    George Nicolaou

    (@orionaselite)

    How would we set the product to “require” shipping? I have never need3ed to define that

    Plugin Author Payment Plugins

    (@mrclayton)

    On the Edit Product page, the Virtual and Downloadable options should be unchecked. If you would like the product page reviewed, please share a link.

    The logic for determining if the shipping options should show is very straightforward. If that’s not working properly, that would indicate there’s something off about the site’s setup.

    Kind Regards

    Thread Starter Vassos Hadjivassiliou

    (@more2think)

    Hello,

    You’re absolutely right—the shipping methods are displayed correctly.

    I’d like to clarify something that might be helpful to others.

    If you’re on the product page and click Google Pay, you’ll be taken directly to the thank you page, bypassing the checkout page. However, if you add the product to the cart or if it’s already in the cart and then click Google Pay on the product page, you’ll be directed to the checkout page before proceeding to the thank you page.

    Everything seems to be functioning as expected. Thank you again for your assistance.

    Thread Starter Vassos Hadjivassiliou

    (@more2think)

    Can you please clarify one more thing?

    When you go to checkout and select Express Checkout with either Google or Apple Pay what is the expected behaviour?

    1. Will this take you directly to thank you page or
    2. The Billing Details on checkout page get automatically completed and user has to just click on Place Order button?

    What I am experiencing right now is what i describe in the second point but the shipping method selected in the Google Pay popup window is not updated on Shipping Options on checkout.

    Can you please explain what happens exactly when you select Express Checkout on checkout page?

    Plugin Author Payment Plugins

    (@mrclayton)

    If you’re on the product page and click Google Pay, you’ll be taken directly to the thank you page, bypassing the checkout page. However, if you add the product to the cart or if it’s already in the cart and then click Google Pay on the product page, you’ll be directed to the checkout page before proceeding to the thank you page.

    That’s not correct. The plugin is designed to process the payment from the product page or cart page. If the customer is redirected to the checkout page it’s because there is a required field that is missing a value. The plugin must redirect the customer to the checkout page so the required field can have a value provided.

    1. Yes, the idea is that the billing and shipping info is populated on the checkout page and the checkout is processed.
    2. No, the user typically doesn’t have to click the place order button unless you have some custom required field that Apple Pay or GPay can’t provide a value for.

    Can you please explain what happens exactly when you select Express Checkout on checkout page?

    Please use the testing site I linked to previously and you will see how the plugin is designed to function on the checkout page when a customer uses express checkout.

    Kind Regards

    Thread Starter Vassos Hadjivassiliou

    (@more2think)

    Thank you for taking the time to explain this. You are absolutely right. The reason it does not take me directly to thank you page is because I have a shipping requirement. The behaviour is exactly as you have explained.

    Thank you again for your help

    Vassos

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.