WordPress at Your Fingertips
function is not described

WC_Payment_Token::set_token() public WC 2.6.0

Set the raw payment token.

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

No Hooks.

Return

null. Nothing.

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.

Code of WC_Payment_Token::set_token() WC 5.5.2

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