• Resolved kognos

    (@kognos)


    Scenario:
    Order is placed but credit card got declined so status is set to “Failed”. Order items are already created at this time, as expected. When customer retries the payment and got approved this time, the order status is changed to “Processing”, as expected, but the order items are recreated in the wp_woocommerce_items table with new order_item_id’s. This event should not recreate an already existing order item record.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @kognos

    Thank you for reaching out to us, we are here to help.

    I reproduce the situation by mocking the failed initial payment, failing the order and then succeeding the second attempt, but I cannot reproduce the behavior. When the first payment attempt is made, a new?order_item_id?is created in this table. But when I then the second payment attempt succeeds, it updates the existing order and does not create a new?order_item_id.

    Can you also do a test, but this time with all plugin (except WooCommerce and PayPal Payments) deactivated and the default storefront theme active, and seeing if that gives you a different outcome? This off course is to see if any other plugin might be affecting this process on your site.

    Pending your response on this.

    Kind regards,
    Joost

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello,

    Since we did not receive any response or follow-up questions from you, we will assume you got this working to your requirements. If you still have any more questions for us, please open a new thread, because we will mark this one as resolved.

    Kind regards,
    Joost

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Order items recreated after payment retry changes stat from failed to processing’ is closed to new replies.