• Hi, I used to use another plugin before and have changed to yours to the many feautures you offer.

    Which are great and i am very happy.

    However I am “struggling” with a functionality that I personally dont like and would like to fix.

    When an order is not completed, due to payment failing at some point, or that the person comes back to the checkout page, the order is made anyways in the backend.

    I only want successfully paid orders to be created and put as processing.

    I dont want pending payment orders, or failed orders created.

    How can I fix this? In short is, if payment is made, order is created, if not, no order is created.

    Thank you!

Viewing 1 replies (of 1 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @txtcoke

    Glad to hear you like our plugin, if you have time I encourage you to leave a review here.

    The Stripe plugin doesn’t control the creation of the order object, that is orchestrated by WooCommerce. To achieve what you’re after, you would need to modify how WooCommerce is designed. Here is a brief summary of how the checkout process works.

    1. Customer clicks place order which results in the checkout form being submitted to your server.
    2. WooCommerce receives request and validates data.
    3. After data validation, WooCommerce creates order, or updates an already existing order that has a failed or pending status for that customer.
    4. After order object creation/update the order is passed to payment method for processing.

    What you would need to do is hook into the actions provided by WooCommerce and delete the order object if the payment failed.

    Kind Regards

Viewing 1 replies (of 1 total)
  • The topic ‘Create order only if payment is made’ is closed to new replies.