• Resolved kfwebmaster

    (@kfwebmaster)


    Steps to recreate:

    1. add product to cart
    2. go to checkout
    3. select vipps as payment option
    4. click Pay (submit checkout form)
    5. click Back (in browser)
    6. click Pay again
    7. 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]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Iver Odin Kvello

    (@iverok)

    Could you retry with the newest version, 1.11.6, just published today? Current code should try to restart the existing transaction if it is still ongoing, and cancel it (so payment can be restarted) if not.

    Restarting payment on orders after “failure” is TBD, but you should not be seeing any further 400 Duplicate Order Ids with the latest code.

    Thread Starter kfwebmaster

    (@kfwebmaster)

    I’ll try ??

    Plugin Author Iver Odin Kvello

    (@iverok)

    Did it work? Thanks for your detailed report btw.

    Thread Starter kfwebmaster

    (@kfwebmaster)

    Tried on our staging-server, same error in frontend and same error in the woocommerce log ??

    Plugin Author Iver Odin Kvello

    (@iverok)

    There’s been a merge problem. I’m fixing it presently. Sorry!

    Plugin Author Iver Odin Kvello

    (@iverok)

    I just pushed version 1.11.7, containing the fixes that *should* have been in 1.11.6.

    Thank you for assisting with this.

    Plugin Author Iver Odin Kvello

    (@iverok)

    Also, if you test this on a staging site, be sure to use a different order prefix there than on your live site, or the order id’s may actually be dupes.

    Thread Starter kfwebmaster

    (@kfwebmaster)

    thanks, will let you know when we’ve tested ??

    Thread Starter kfwebmaster

    (@kfwebmaster)

    everything seems to work perfectly with the latest version ??
    smooth experience for the user, and no errors in the logs

    thanks!

    Plugin Author Iver Odin Kvello

    (@iverok)

    Excellent, thank you. Sorry about version 1.11.6.

    Thread Starter kfwebmaster

    (@kfwebmaster)

    no worries, thanks for the quick responses ??

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Vipps becomes unavailable when customers uses back-button to cancel order’ is closed to new replies.