WC_Gateway_Paypal::process_payment() public WC 1.0
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(число) (обязательный)
- Order ID.
Код WC_Gateway_Paypal::process_payment() WC Gateway Paypal::process payment WC 5.0.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 ),
);
}