• Hi and thank you in advance for your help.

    Got a WooCommerce website where almost all the checkout callbacks are made by ?wc-ajax=checkout, however in like every 400 checkouts the it comes from /checkout/order-pay/9999/?pay_for_order=true&key=x

    Example from log:

    
    2021-03-02T14:31:19+00:00 DEBUG EXTRA (/?wc-ajax=checkout) - woocommerce_checkout_update_order_meta - Force ref generation before anything - Order 9980
    2021-03-02T14:31:19+00:00 DEBUG EXTRA (/?wc-ajax=checkout) - get_ref - Force change: false - Order 9980
    2021-03-02T14:31:19+00:00 DEBUG EXTRA (/?wc-ajax=checkout) - get_ref - Will create reference (Default mode) - Order 9980
    2021-03-02T14:31:19+00:00 DEBUG EXTRA (/?wc-ajax=checkout) - create_ref - Reference generated: ENT REF 18.00
    2021-03-02T14:31:19+00:00 DEBUG EXTRA (/?wc-ajax=checkout) - set_order_mb_details - Details updated on the database: a:3:{s:3:"ent";s:5:"ENT";s:3:"ref";s:9:"REF";s:3:"val";s:5:"18.00";} - Order: 9980
    2021-03-02T14:31:19+00:00 DEBUG Multibanco payment details (ENT / REF / 18.00) generated for Order 9980
    

    This is the regular entry on the logs for 99.99% of the orders.

    However, then we have one of these every couple of days:

    
    2021-03-02T14:35:36+00:00 DEBUG EXTRA (/checkout/order-pay/9990/?pay_for_order=true&key=wc_order_xxx) - process_payment - Order 9990
    2021-03-02T14:35:36+00:00 DEBUG EXTRA (/checkout/order-pay/9990/?pay_for_order=true&key=wc_order_xxx) - Email (new_order) instructions send: true
    2021-03-02T14:35:36+00:00 DEBUG EXTRA (/checkout/order-pay/9990/?pay_for_order=true&key=wc_order_xxx) - Email (new_order) instructions show: true - Status on-hold - Order 9990
    2021-03-02T14:35:36+00:00 DEBUG EXTRA (/checkout/order-pay/9990/?pay_for_order=true&key=wc_order_xxx) - get_ref - Force change: false - Order 9990
    2021-03-02T14:35:36+00:00 DEBUG EXTRA (/checkout/order-pay/9990/?pay_for_order=true&key=wc_order_xxx) - get_ref - Will create reference (Default mode) - Order 9990
    2021-03-02T14:35:36+00:00 DEBUG EXTRA (/checkout/order-pay/9990/?pay_for_order=true&key=wc_order_xxx) - create_ref - Reference generated: ENT REF 29.00
    2021-03-02T14:35:36+00:00 DEBUG EXTRA (/checkout/order-pay/9990/?pay_for_order=true&key=wc_order_xxx) - set_order_mb_details - Details updated on the database: a:3:{s:3:"ent";s:5:"ENT";s:3:"ref";s:9:"REF";s:3:"val";s:5:"29.00";} - Order: 9990
    2021-03-02T14:35:36+00:00 DEBUG Multibanco payment details (ENT / REF / 29.00) generated for Order 9990
    

    They are both new orders and the checkout process is unique.
    User adds to the Cart, proceeds to checkout, finalizes order and the payment details are generated. When the second situation happens, two references are created and the wrong reference is associated with the order, which then requires additional manual verification.

    Being the checkout process unique, how or why does this happen? Thank you.

    • This topic was modified 3 years, 8 months ago by Ricardo. Reason: typos
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Checkout Issue’ is closed to new replies.