WordPress at Your Fingertips
function is not described

WC_Payment_Gateway::process_payment() public WC 1.0

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 ) );

{} It's a method of the class: WC_Payment_Gateway{}

No Hooks.




$WC_Payment_Gateway = new WC_Payment_Gateway();
$WC_Payment_Gateway->process_payment( $order_id );
$order_id(int) (required)
Order ID.

Code of WC_Payment_Gateway::process_payment() WC 5.5.2

public function process_payment( $order_id ) {
	return array();