WC_Payment_Gateway::process_payment( int $order_id )

Process Payment.


Description Description

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

Parameters Parameters

$order_id

(Required) Order ID.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/abstracts/abstract-wc-payment-gateway.php

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

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.