• Resolved qwik3r

    (@qwik3r)


    Hello,

    I’m seeing a lot of duplicate payments lately a few minutes apart from each other. For example, one customer tried checking out at 5:21am and the order was successful. Then 7 minutes later I see a duplicate order at 5:28 but in the notes it says that this happened at 5:22:

    Error processing payment. Reason: The provided PaymentMethod was previously used with a PaymentIntent without Customer attachment, shared with a connected account without Customer attachment, or was detached from a Customer. It may not be used again. To use a PaymentMethod multiple times, you must attach it to a Customer first. Order status changed from Pending payment to Failed.

    Then, it eventually settled and the transaction went through at 5:28. It definitely is a duplicate transaction and duplicate order. I don’t think that the customer placed 2 orders at 5:22 and then again at 5:28 because the error processing payment message appears at 5:22 on one of the orders.

    Anyway, it’s not happening with every order, but it’s happening often enough to cause concern and annoying customers when I have to field emails about duplicate payments.

    Can you please advise on a solution?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hello,

    The Stripe plugin isn’t responsible for the logic surrounding the creation of a WooCommerce order or the logic that precedes a payment being processed. The error message The provided PaymentMethod was previously used with a PaymentIntent without Customer attachment… happens when a payment method ID that’s already been used, is seen again in a payment request. It’s a safeguard to prevent a duplicate payment or a bad actor re-using a stolen payment method ID.

    You have something on your site that’s triggering a duplicate checkout request, which isn’t something that would be caused by the Stripe plugin. If you’re using NGINX as your webserver, make sure it’s not setup to resend long responding requests.

    Thanks

    Thread Starter qwik3r

    (@qwik3r)

    Thanks. I don’t know what else would submit a duplicate order. Here are all of my Woocommerce plugins currently active: https://share.zight.com/xQuoY1zv

    Has this ever been reported before? Do you have any additional insight into this?

    • This reply was modified 5 months, 4 weeks ago by qwik3r.
    Plugin Author Payment Plugins

    (@mrclayton)

    @qwik3r Many of your plugins are outdated, including the Stripe plugin, by about 18 versions. I would highly recommend you keep the Stripe plugin updated as we are constantly making improvements.

    Do you have any additional insight into this?

    Yes, I’ve seen this before, that’s why I mentioned your NGINX config in the previous reply. In that scenario, a merchant’s webserver was waiting 60 seconds and then issuing a duplicate request. I can tell it’s a duplicate request because the same payment method ID is being used. If the customer was actually submitting the checkout page multiple times, the payment method ID would be different each time.

    WooCommerce and the Stripe plugin have Javascript code in place to prevent a customer from clicking the Place Order button multiple times and causing multiple requests.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.