bluepayment-plugin / bluemedia-payment-gateway-for-woocommerce

GNU General Public License v3.0
4 stars 2 forks source link

Use default WooCommerce status processing #8

Open tomek-sienicki opened 1 year ago

tomek-sienicki commented 1 year ago

Use payment_complete for success transactions. Add 'Auto' for wc_payment_status_on_bm_success to leverage default WC status processing.

Default WC status processing moves an order to completed when there are only virtual downloadable products and leaves processing otherwise.

tomek-sienicki commented 1 year ago

@pminspire thanks for applying the payment_complete 👍🏿 Can you also add an Auto state for wc_payment_status_on_bm_success not to force any status change as in current MR commit? Forcing it to completed will set all orders to complete which is bad for physical products (which by default are set to processing). Forcing it to processing will set all orders to processing which is bad for virtual + downloadable products only (which by default are set to completed). Feel free to set the default value 😄 to either empty = Auto which is the WC behaviour or wc-completed as it was before and to drop woocommerce_payment_complete_order_status filter 😉 Thanks!