Automattic\WooCommerce\Blocks\Payments\Integrations
Stripe::__construct() public WC 1.0
Constructor
{} Это метод класса: Stripe{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$Stripe = new Stripe(); $Stripe->__construct( $asset_api );
- $asset_api(Api) (обязательный)
- An instance of Api.
Код Stripe::__construct() Stripe:: construct WC 5.2.2
public function __construct( Api $asset_api ) {
$this->asset_api = $asset_api;
add_action( 'woocommerce_rest_checkout_process_payment_with_context', [ $this, 'add_payment_request_order_meta' ], 8, 2 );
add_action( 'woocommerce_rest_checkout_process_payment_with_context', [ $this, 'add_stripe_intents' ], 9999, 2 );
}