Paid orders with variables products without variation
-
Hi WooCommerce team,
One of my clients reported to me that they had orders paid for with variable products with no variations (~1% of the total orders).At first, I thought the problem was with the payment gateway (PayPlug), but it seems to be a WooCommerce problem, as they had other payment gateways that generate the same thing (PayPal and Stripe). I’ve only managed to reproduce the error with PayPlug, though, but I’m quite sure it’s not related to this payment method as some orders have the same problem on PayPal and Stripe.
I reproduced the issue with success on a blank Woocommerce/Storefront Environment.
/* Environment */- WooCommerce 8.2.1
- PayPlug 2.6.5
- Storefront 4.5.3
/* Step to reproduce the problem: */- Go to this sandbox website shop page: https://www.payplug.kevinleclerc.com
- Add variable products to your shopping cart.
(You may need to have a sufficient amount to trigger 3D secure*, as it is easy to reproduce the issue by canceling the 3D secure verification, see the video capture below).
*If your bank don’t ask for 3D secure, you can check this video capture to see the issue - Click on the shopping cart > Checkout
- Fill in the checkout and passe the order with a real credit card (necessary to activate 3D secure and reproduce the error) from the Payplug payment form (“Pay by credit card”)
- Wait for the 3D secure window to open, then click on “I cancel the order” (or equivalent, depending on your bank).
- Wait until you are redirected to the site (on the page indicating that the order has failed, displaying this message “Unfortunately your order cannot be processed because the original bank or merchant has refused your transaction. Please try again”)
- Click on the Pay button
- Do not pay for the order, click on the site logo to return to the home page
- Look at your shopping cart: your product variations have disappeared but you still have variable “parent” products in your shopping cart
You can see all the process on this video capture (I’ve cut off the checkout form submission and 3d secure payment cancellation step for security purposes) : https://www.loom.com/share/a73c66c247b640368501a2e22ccbcc04?sid=2e6c4898-c6de-4153-ad4d-ce0989a7b56c
The problem seems that when clicking on the Pay button (after being redirected to checkout by the payment gateway, after cancelling 3d secure) and reaching this url (https://www.payplug.kevinleclerc.com/commander/order-pay/36/?pay_for_order=true&key=wc_order_fYpYDu76lzlGP), variables products are automatically added to the shopping cart without variations.
Please note that I talk about 3D secure here because it is the only way I found to systematicaly reproduce the issue, but it it’s not restricted to that (The customer’s bank declined the payment / The card has reached its transaction limit / The payment is suspected to be a fraud /etc.). I think the issue is more about the products added to the shoping cart when reaching this endpoint “order-pay/{order_id}/?pay_for_order=true&key=wc_order_{some_id?}
- This topic was modified 1 year, 3 months ago by .
- This topic was modified 1 year, 3 months ago by .
- This topic was modified 1 year, 3 months ago by .
- This topic was modified 1 year, 3 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘Paid orders with variables products without variation’ is closed to new replies.