WC_Gateway_Paypal::process_payment( int $order_id )
Process the payment and return the result.
Description Description
Parameters Parameters
- $order_id
-
(Required) Order ID.
Return Return
(array)
Source Source
File: includes/gateways/paypal/class-wc-gateway-paypal.php
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 ), ); }