woocommerce_pos_process_payment

The WooCommerce POS woocommerce pos process payment hook.

Description

do_action( 'woocommerce_pos_process_payment', (unknown) $payment_details, (unknown) $order ); 

Parameters (2)

0. $payment_details (unknown)
The payment details.
1. $order (unknown)
The order.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'woocommerce_pos_process_payment', $payment_details, $order ); 
The following example is for adding a hook callback.
  1. // define the woocommerce_pos_process_payment callback 
  2. function action_woocommerce_pos_process_payment( $payment_details, $order ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'woocommerce_pos_process_payment', 'action_woocommerce_pos_process_payment', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'woocommerce_pos_process_payment', 'action_woocommerce_pos_process_payment', 10, 2 ); 

Defined (3)

The action is defined in the following location(s).

/includes/apiv2/class-wc-pos-orders.php  
  1. do_action( 'woocommerce_pos_process_payment', $payment_details, $order); 
/includes/api/class-wc-pos-orders.php  
  1. do_action( 'woocommerce_pos_process_payment', $order_id, $this->data); 
  1. do_action( 'woocommerce_pos_process_payment', $order_id, $this->data);