Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Google Pay shows a generic error message for purchases of small amounts over 0,30£ #3437

Closed
Aljullu opened this issue Nov 20, 2020 · 3 comments
Labels
block: checkout Issues related to the checkout block. type: bug The issue/PR concerns a confirmed bug.

Comments

@Aljullu
Copy link
Contributor

Aljullu commented Nov 20, 2020

To reproduce

In a store with the Stripe payment gateway installed and express payment methods enabled.

  1. Create a product with a price of 0,18£.
  2. Add two of them to your cart.
  3. Go to the Checkout page that has the Checkout block.
  4. Try to pay with Google Pay.
  5. Notice payment fails with a generic message.

Image showing the error

Expected behavior

It should show a message that clearly states why the purchase failed. When the order total is below 0,30£, it states the minimum is 0,30£. However, it fails with 0,32£ and 0,36£ too and the error message is a generic one.

@Aljullu Aljullu added type: bug The issue/PR concerns a confirmed bug. block: checkout Issues related to the checkout block. labels Nov 20, 2020
@nerrad
Copy link
Contributor

nerrad commented Nov 20, 2020

@mikejolley recently merged #3424 which exposed the cart totals to payment methods canMakePayment callbacks and it looks like that was implemented for Stripe Payment Method (cc) but not Stripe Payment Request (express payment methods).

However, it also appears there is something awry with the totals that are close to the min value - that aspect might be a new issue.

@opr
Copy link
Contributor

opr commented Nov 30, 2020

I've just tested this on a fresh site, and it worked fine for me when using Google Pay.

  • Added two items with a price of £0.18 to my cart, making the total £0.36
  • Went to the checkout block and used the express payment method for Google Pay.
  • Selected my shipping address and free shipping rate.
  • Selected my Google pay account as the payment method.
  • Successful checkout

However, using my debit card (rather than my Google pay account) gave me a "Card declined" error. Not a generic one like the issue shows.

Device info

Device: Google Pixel 2 XL
Android version: Android 11.

@Aljullu
Copy link
Contributor Author

Aljullu commented Dec 3, 2020

I spent some more time debugging this, these were my findings:

  • I could reproduce the issue in a fresh install with WC 4.7.1, WC Blocks trunk and Stripe Gateway 4.5.5.
  • When I changed the currency from Pound sterling to Euro or USD I got a clear error message stating that the minimum amount is €0.50 or $0.50.
  • I tested with the Cart shortcode and I could reproduce the issue as well.

Given that, I don't think this bug is specific to WooCommerce Blocks, so I will close it.

@Aljullu Aljullu closed this as completed Dec 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
block: checkout Issues related to the checkout block. type: bug The issue/PR concerns a confirmed bug.
Projects
None yet
Development

No branches or pull requests

3 participants