Automattic\WooCommerce\Blocks\Payments

Api::__construct()publicWC 1.0

Constructor

Method of the class: Api{}

No Hooks.

Return

null. Nothing (null).

Usage

$Api = new Api();
$Api->__construct( $payment_method_registry, $asset_registry );
$payment_method_registry(PaymentMethodRegistry) (required)
An instance of Payment Method Registry.
$asset_registry(AssetDataRegistry) (required)
Used for registering data to pass along to the request.

Api::__construct() code WC 8.7.0

public function __construct( PaymentMethodRegistry $payment_method_registry, AssetDataRegistry $asset_registry ) {
	$this->payment_method_registry = $payment_method_registry;
	$this->asset_registry          = $asset_registry;
}