WordPress at Your Fingertips
function is not described

WC_Gateway_Paypal::process_payment() public WC 1.0

Process the payment and return the result.

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

No Hooks.

Return

Array.

Usage

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

Code of WC_Gateway_Paypal::process_payment() WC 5.7.0

public function process_payment( $order_id ) {
	include_once dirname( __FILE__ ) . '/includes/class-wc-gateway-paypal-request.php';

	$order          = wc_get_order( $order_id );
	$paypal_request = new WC_Gateway_Paypal_Request( $this );

	return array(
		'result'   => 'success',
		'redirect' => $paypal_request->get_request_url( $order, $this->testmode ),
	);
}