WordPress at Your Fingertips
function is not described

WC_Payment_Gateway::tokenization_script() public WC 2.6.0

Enqueues our tokenization script to handle some of the new form options.

{} It's a method of the class: WC_Payment_Gateway{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Payment_Gateway = new WC_Payment_Gateway();
$WC_Payment_Gateway->tokenization_script();

Changelog

Since 2.6.0 Introduced.

Code of WC_Payment_Gateway::tokenization_script() WC 5.5.2

<?php
public function tokenization_script() {
	wp_enqueue_script(
		'woocommerce-tokenization-form',
		plugins_url( '/assets/js/frontend/tokenization-form' . ( Constants::is_true( 'SCRIPT_DEBUG' ) ? '' : '.min' ) . '.js', WC_PLUGIN_FILE ),
		array( 'jquery' ),
		WC()->version
	);

	wp_localize_script(
		'woocommerce-tokenization-form',
		'wc_tokenization_form_params',
		array(
			'is_registration_required' => WC()->checkout()->is_registration_required(),
			'is_logged_in'             => is_user_logged_in(),
		)
	);
}