Stripe Payment Request IntegrationError
-
We’re encountering a critical error using the latest version of the WooCommerce Stripe Gateway plugin alongside the WooCommerce block-based checkout system.
When a coupon is applied, and a customer then attempts to use an express checkout method (Apple Pay or Google Pay) via Stripe’s Payment Request API, the following error appears in the browser console:
Unhandled Promise Rejection: IntegrationError: The amount 10196 is less than the total amount of the line items provided.This occurs at the point of pressing the express checkout button.
- WooCommerce
- WooCommerce Stripe Gateway
- Block-based Checkout enabled
- Apple Pay and/or Google Pay active
- Coupon applied before attempting express checkout
Reproducible Steps:
- Add an item to cart.
- Proceed to block-based checkout.
- Apply a coupon that reduces the total.
- Tap on Apple Pay / Google Pay.
- Console throws the
IntegrationErrorabove. - Checkout does not proceed.
Expected Behavior:
The Stripe payment request should reflect the updated cart total (after coupons), and allow the express checkout to proceed without error
Stripe throws a mismatch error between the
paymentRequest()total and the line items total from WooCommerce, blocking express checkout.
The topic ‘Stripe Payment Request IntegrationError’ is closed to new replies.