On checkout error open Swal popup based on payment_process response code.
-
I am new to WP plugin develpment, we’re developing payment option with woocommerce plugin. In
public function process_payment($order_id){}
method, in case of specific exception / error from our server, need to show swal popup using JS. Also tried with$('body').on('checkout_error',function(){});
But cannot read the HTTP response as getting in process_payment method. Please suggest me better way to do this.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘On checkout error open Swal popup based on payment_process response code.’ is closed to new replies.