WC_Legacy_Payment_Token::set_type()publicWC 1.0

Sets the type of this payment token (CC, eCheck, or something else).

Method of the class: WC_Legacy_Payment_Token{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Legacy_Payment_Token = new WC_Legacy_Payment_Token();
$WC_Legacy_Payment_Token->set_type( $type );
$type (required)
-

WC_Legacy_Payment_Token::set_type() code WC 8.9.0

public function set_type( $type ) {
	wc_deprecated_function( 'WC_Payment_Token::set_type', '3.0.0', 'Type cannot be overwritten.' );
}