WC_Payment_Token::get_token()
Returns the raw payment token.
Method of the class: WC_Payment_Token{}
No Hooks.
Return
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 9.3.3
public function get_token( $context = 'view' ) { return $this->get_prop( 'token', $context ); }