You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Express checkout buttons are shown for $0 checkouts. However, such amount is not supported by Stripe express checkout, leading to a lot of abandoned checkouts due to the Apple/Google pay button throwing errors when the checkout is $0.
This was fixed for block-based themes, but not for the shortcode ones, like StoreFront.
Update: After some testing (see notes below), I can reproduce this issue, with the caveat, that coupon code should be applied on the checkout page, once express checkout buttons are rendered.
I've been testing the steps locally and cannot reproduce the issue. I've tried three different options, both with develop and 8.4.0 branches:
Completely free product and shipping.
Non-free product with coupon for 100% discount and free shipping.
Non-free product with coupon for the exact amount and free shipping.
In all three cases express checkout buttons didn't appear on the cart and checkout pages, both block and shortcode versions.
Moreover, I didn't see any payment options suggested, and my suspicion is that WooCommerce handled the zero amount on its side, removing the need for the payment plugins to intervene.
If I remove the coupon, buttons appear as expected.
dmvrtx
changed the title
Payment Request buttons visible for zero-amount cart on non-block based (shortcode) checkout
Payment Request buttons visible for zero-amount checkout if coupon is appled on the checkout page
Nov 8, 2024
The culprit is that for the checkout page WooPayments decides in class-wc-payments-payment-request-button-handler.php if it should show express checkout buttons or not, but this check happens once when page is loaded and is not re-evaluated when cart totals are updated. This seems to have other implications, e.g. payment request buttons won't appear if cart total goes from zero to any other value.
Describe the bug
Express checkout buttons are shown for $0 checkouts. However, such amount is not supported by Stripe express checkout, leading to a lot of abandoned checkouts due to the Apple/Google pay button throwing errors when the checkout is $0.
This was fixed for block-based themes, but not for the shortcode ones, like StoreFront.
Related GH Issues:
To Reproduce
Note
It is important that coupon is applied on the checkout page, when express payout buttons are already visible!
Actual behavior
Payment Request buttons, i.e. ApplePay, GooglePay and others, are visible.
Screenshots
Expected behavior
Payment Request buttons shouldn't be available.
The text was updated successfully, but these errors were encountered: