WC_Payment_Gateway::process_payment()
Process Payment.
Process the payment. Override this in your gateway. When implemented, this should. return the success and redirect in an array. e.g:
return array( 'result' => 'success', 'redirect' => $this->get_return_url( $order ) );
Method of the class: WC_Payment_Gateway{}
No Hooks.
Return
Array
.
Usage
$WC_Payment_Gateway = new WC_Payment_Gateway(); $WC_Payment_Gateway->process_payment( $order_id );
- $order_id(int) (required)
- Order ID.
WC_Payment_Gateway::process_payment() WC Payment Gateway::process payment code WC 9.7.1
public function process_payment( $order_id ) { return array(); }