WC_Payment_Gateway::process_payment()publicWC 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 ) );

{} Это метод класса: WC_Payment_Gateway{}

Хуков нет.

Возвращает

Массив.

Использование

$WC_Payment_Gateway = new WC_Payment_Gateway();
$WC_Payment_Gateway->process_payment( $order_id );
$order_id(int) (обязательный)
Order ID.

Код WC_Payment_Gateway::process_payment() WC 6.5.1

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