Vipps becomes unavailable when customers uses back-button to cancel order
-
Steps to recreate:
- add product to cart
- go to checkout
- select vipps as payment option
- click Pay (submit checkout form)
- click Back (in browser)
- click Pay again
- error message should appears
If a customer wants to add another product or change the address after clicking on Pay in the checkout, they should click on Cancel in the payment window, make the changes and click Pay again. Then everything works.
However, some customers are simply clicking Back (in the browser) instead.
WooCommerce log error:
2022-11-07T14:29:02+00:00 DEBUG Initiating Vipps session for [Order ID] 2022-11-07T14:29:02+00:00 ERROR Kunne ikke opprette Vipps-betaling 400 Duplicate Order Id for Sale Unit Id
There is no further recourse for the customer, they can no longer pay with vipps for the current order, so they must use another payment option or clear browser cache to start fresh. This is probably costing us some customers.
Possible solution:
When clicking Pay in checkout, there should be an action to check if the order already has an associated transaction id for vipps – and if so, send a cancellation api call before proceeding.
The page I need help with: [log in to see the link]
- The topic ‘Vipps becomes unavailable when customers uses back-button to cancel order’ is closed to new replies.