WC_Payment_Token::get_token
Returns the raw payment token.
Method of the class: WC_Payment_Token{}
No Hooks.
Returns
String. Raw token
Usage
$WC_Payment_Token = new WC_Payment_Token(); $WC_Payment_Token->get_token( $context );
- $context(string)
- Context in which to call this.
Default:'view'
Changelog
| Since 2.6.0 | Introduced. |
WC_Payment_Token::get_token() WC Payment Token::get token code WC 10.5.0
public function get_token( $context = 'view' ) {
return $this->get_prop( 'token', $context );
}