Support » Plugin: WooCommerce Stripe Payment Gateway » Double payment in Stripe

  • Resolved kuckovic

    (@kuckovic)


    Hi support

    We’ve had an unfortunate issue on our website.
    A customer was paying for a subscription, but due to lag, Stripe sent a payment request twice – and therefore the payment was captured twice.

    We’ve been in contact with Stripe, who sent us the following explaination:

    Prevent duplicate charges – Stripe API supports idempotency for safely retrying requests without accidentally performing the same operation twice. For example, if a request to create a charge fails due to a network connection error, you can retry the request with the same idempotency key to guarantee that only a single charge is created. You can read more about this here:

    https://stripe.com/docs/api#idempotent_requests

    Is there anything WE can do to prevent this from happening?
    Luckily it has only happened once (for now) – but it should not be happening at all.

    Please let me know what you think.

    Best regards
    Aris Kuckovic

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Joey – a11n

    (@jricketts4)

    Hi @kuckovic – Was this with the standard credit card form in checkout or Apple Pay, etc?

    Thread Starter kuckovic

    (@kuckovic)

    @jricketts4

    Sorry for my late reply!
    It was with a standard credit card.
    And it was only on one order – the orders before and after went through just fine.

    // Aris

    Plugin Support Joey – a11n

    (@jricketts4)

    Thanks @kuckovic!

    We already use idemptotency, so that shouldn’t happen like you’re describing.
    Can you let me know which versions of Stripe and WooCommerce you’re currently running?

    Thread Starter kuckovic

    (@kuckovic)

    Hi @jricketts4

    WooCommerce is version 4.6.2
    And Stripe version is 4.5.3

    As far as I can see, there are no updates.

    // Aris

    Plugin Support Joey – a11n

    (@jricketts4)

    Hi @kuckovic – Thanks for that!
    In this case, we’d like to take a further look, please contact us at WooCommerce.com > My Account > Support. You may need to create an account before you can access that page.

    Please include a link to this forum thread, so that we can keep track of what’s already been done.

    We will be able to help you further there. 😁

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Double payment in Stripe’ is closed to new replies.