WC_Payment_Token::set_token()
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() WC Payment Token::set token code WC 9.7.1
public function set_token( $token ) { $this->set_prop( 'token', $token ); }