WC_Gateway_Paypal::process_payment PHP Метод

process_payment() публичный Метод

Process the payment and return the result.
public process_payment ( integer $order_id ) : array
$order_id integer
Результат array
    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));
    }