WC_Payment_Token::set_token()publicWC 2.6.0

Set the raw payment token.

Method of the class: WC_Payment_Token{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Payment_Token = new WC_Payment_Token();
$WC_Payment_Token->set_token( $token );
$token(string) (required)
Payment token.

Changelog

Since 2.6.0 Introduced.

WC_Payment_Token::set_token() code WC 8.6.1

public function set_token( $token ) {
	$this->set_prop( 'token', $token );
}