Join our new community forum for support & discussion

Join Now

Home Support Extensions Bookings Auto complete orders

Auto complete orders

  • Author
    Posts
  • Novakon86

    hi i have been having trouble with auto completing orders, despite using this code snippet

    add_filter(
    'woocommerce_payment_complete_order_status',
    function( $status ) {
    return 'completed';
    	},
    	1000
    	);

    how can i make orders auto complete so users dont have to manually complete the orders??

    ihor developer

    Please make sure that the payment gateways you set up notify your website about a successful payment. For example PayPal should mark orders as Processing by default, and the code snippet you’re using should switch this to Completed instead.
    If the core snippet is added correctly but orders don’t get the Completed status this means that the website is not notified about the payments. If you use another snippet that sets the Completed status regardless of the payment this may cause some issues, e.g. even canceller and unpaid orders will confirm bookings.

    ihor developer

    Please try using our new forum for any further requests, this one will be switched to read-only soon https://community.hivepress.io/

    Novakon86

    And how do i ensure that my payment gateway which is “PAYFAST” notifies my website of payments?

    ihor developer

    If you use this one please make sure that it’s set up correctly according to their docs https://woocommerce.com/products/payfast-payment-gateway/ The payment gateway should switch the status to at least “processing” on successful payment.

Viewing 5 posts - 1 through 5 (of 5 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.