WC_Payment_Token::get_token( string $context = 'view' )
Returns the raw payment token.
Description Description
Parameters Parameters
- $context
-
(Optional) Context in which to call this.
Default value: 'view'
Return Return
(string) Raw token
Source Source
File: includes/abstracts/abstract-wc-payment-token.php
public function get_token( $context = 'view' ) { return $this->get_prop( 'token', $context ); }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |