WC_Gateway_Paypal::process_payment()
Process the payment and return the result.
Метод класса: WC_Gateway_Paypal{}
Хуков нет.
Возвращает
Массив
.
Использование
$WC_Gateway_Paypal = new WC_Gateway_Paypal(); $WC_Gateway_Paypal->process_payment( $order_id );
- $order_id(int) (обязательный)
- Order ID.
Код WC_Gateway_Paypal::process_payment() WC Gateway Paypal::process payment WC 9.2.3
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 ), ); }