WC_Gateway_Paypal_Request::capture_authorized_paymentpublicWC 1.0

Deprecated since 0.5.0. It is no longer supported and may be removed in future releases. Use Automattic\WooCommerce\Gateways\PayPal\Request::capture_authorized_payment(). This method will be removed in 11.0.0 instead.

Capture a PayPal payment that has been authorized.

Method of the class: WC_Gateway_Paypal_Request{}

No Hooks.

Returns

null. Nothing (null).

Usage

$WC_Gateway_Paypal_Request = new WC_Gateway_Paypal_Request();
$WC_Gateway_Paypal_Request->capture_authorized_payment( $order );
$order(WC_Order) (required)
Order object.

Changelog

Deprecated since 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() code WC 10.7.0

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 );
}