• Resolved Brendan O

    (@florencestore)


    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:

    1. Add an item to cart.
    2. Proceed to block-based checkout.
    3. Apply a coupon that reduces the total.
    4. Tap on Apple Pay / Google Pay.
    5. Console throws the IntegrationError above.
    6. 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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    I tried to replicate the issue on my site, but I wasn’t able to reproduce it.

    I added the product to the cart, proceeded to the checkout page (block base checkout), applied a discount coupon, and then placed a test order using Google Pay with a Stripe test card. Everything worked fine, and the order was placed without any issues.

    This suggests that the issue might be related to a plugin conflict or custom code on your site.

    To assist you further, I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:

    • System Status Report which you can find via WooCommerce > Status
    • Fatal error logs (if any) under WooCommerce > Status > Logs.

    Please use https://pastebin.com/ or https://gist.github.com/ and share a link to that paste in reply here. Once we have more information, we’ll be able to assist you further.

    In the meantime, I would suggest making sure you’re using WooCommerce version 9.8.2 and the Stripe for WooCommerce plugin version 9.4.1.

    Also, please share your site URL so we can further investigate the issue.

    Thread Starter Brendan O

    (@florencestore)

    Please test with Apple Pay and confirm.

    Hi @florencestore,

    Thanks for getting back to me. To help me better understand the issue on your end, could you please share your system status report as previously requested, along with any fatal error logs you might have?

    Plugin Support Chris Moreira – a11n

    (@chrism245)

    I’m going to mark this as resolved, as we didn’t receive any update on this. We’ll be here if and/or when you are ready to continue.

    Your feedback helps other users and contributes to improving the plugin.

    You can leave your review here: https://wordpress.org/support/plugin/woocommerce-gateway-stripe/reviews/

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

The topic ‘Stripe Payment Request IntegrationError’ is closed to new replies.