• Resolved cliffpenn

    (@cliffpenn)


    Similarly to this post:
    https://www.ads-software.com/support/topic/woocommerce-try-to-capture-an-amount-greater-than-it-already-has/

    I am still setting up my website (hence not posted here). I am in Stripe test mode and using the Stripe test credit card 4242424242424242.

    The problem: my test purchase will not go ahead because it seems that in Woocommerce, it attempts to charge 1 cent more when confirming (capturing) a charge that has already been reserved.

    NOTE: I am based in New Zealand and the store is in NZD. The other post above was using Euros. Do we have currency rounding issues? Yes is an acceptable answer, in which case I can happily tick the “capture payment immediately” box to plaster over this issue!

    Details
    ——————–

    1. The stripe message:
    “message”: “You cannot capture a payment for an amount greater than it already has.”
    “type”: “invalid_request_error”

    Message request params:
    {
    “amount”: “2363”,
    “expand”: [
    “charges.data.balance_transaction”
    ]
    }

    Response body:
    {
    “error”: {
    “code”: “amount_too_large”,
    “doc_url”: “https://stripe.com/docs/error-codes/amount-too-large”,
    “message”: “You cannot capture a payment for an amount greater than it already has.”,
    “payment_intent”: {
    “id”: “[removed by me]”,
    “object”: “payment_intent”,
    “amount”: 2362,
    “amount_capturable”: 2362,
    ………

    2. In Woocommerce:
    Status: changed to failed after attempting to change to Processing
    Order Total: $23.63
    ***note the extra 1 cent

    3. Versions:
    Woocommerce plugin: 4.2.0
    Stripe payment gateway plugin: 4.4.0
    Wordpress: 5.4.2

    4. Woocommerce setup details:
    General…
    Country/state: New Zealand
    Selling location: to all countries
    Ship: to all countries you sell to
    Default customer location: shop base address
    Enable tax rates and calculations: yes
    Enable the use of coupons: yes
    Calculate coupon discounts sequentially: no
    Currency: New Zealand dollar
    Number of decimals: 2
    Prices entered with tax: yes, I will enter prices inclusive of tax
    Calculate tax based on: customer shipping address
    Shipping tax class: shipping tax class based on cart items
    Rounding: round tax at subtotal level, instead of rounding per line
    Display prices in the shop: including tax
    Display prices during cart and checkout: including tax
    Display tax totals: as a single total
    Shipping…
    Shipping zones: One zone, region=New Zealand, one method=flat rate, enabled
    Payments…
    Payment methods enabled: Stripe-Credit Card (i.e. the main one)
    Enable test mode: yes
    Inline credit card form: yes
    Enable payment request buttons: yes
    Enable payment via saved cards: yes
    Accounts and privacy…
    Under Accounts and privacy, all options are ticked.

    Let me know if you need any other info.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter cliffpenn

    (@cliffpenn)

    Bump… need more info? Don’t care? Any answer is preferable to none, thanks ??

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey there!

    Sorry about the delay.

    You are correct, I think that is most likely a rounding issue, typically with tax.

    We often see this with tax rates that are more than the decimal places for the currency (like a rate of .001% and a currency of $1.01 for instance).

    I hope that helps give some clarity to the issue.

    Hopefully that helps! Have a great one!

    Plugin Support dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    hey @cliffpenn

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thanks,

    Thread Starter cliffpenn

    (@cliffpenn)

    Hi, sorry I didn’t get around to replying. resolved yes and no. I decided to go with a different Stripe plugin. It would be good to see this issue fixed in the future so people can have more confidence in this plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘1 cent extra causes charge capture to fail’ is closed to new replies.