WC_Gateway_Paypal_Request::capture_authorized_payment
Устарела с версии 0.5.0. Больше не поддерживается и может быть удалена. Используйте
Automattic\WooCommerce\Gateways\PayPal\Request::capture_authorized_payment(). This method will be removed in 11.0.0.Capture a PayPal payment that has been authorized.
Метод класса: WC_Gateway_Paypal_Request{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$WC_Gateway_Paypal_Request = new WC_Gateway_Paypal_Request(); $WC_Gateway_Paypal_Request->capture_authorized_payment( $order );
- $order(WC_Order) (обязательный)
- Order object.
Список изменений
| Устарела с 10.5.0 | Use Automattic\WooCommerce\Gateways\PayPal\Request::capture_authorized_payment() instead. This method will be removed in 11.0.0. |
Код WC_Gateway_Paypal_Request::capture_authorized_payment() WC Gateway Paypal Request::capture authorized payment WC 11.2.2
public function capture_authorized_payment( $order ) {
wc_deprecated_function( __METHOD__, '10.5.0', 'Automattic\WooCommerce\Gateways\PayPal\Request::capture_authorized_payment()' );
if ( ! $this->request ) {
$this->request = new PayPalRequest( $this->gateway );
}
$this->request->capture_authorized_payment( $order );
}