WC_Payment_Token::get_gateway_id()
Returns the ID of the gateway associated with this payment token.
Method of the class: WC_Payment_Token{}
No Hooks.
Return
String
. Gateway ID
Usage
$WC_Payment_Token = new WC_Payment_Token(); $WC_Payment_Token->get_gateway_id( $context );
- $context(string)
- In what context to execute this.
Default: 'view'
Changelog
Since 2.6.0 | Introduced. |
WC_Payment_Token::get_gateway_id() WC Payment Token::get gateway id code WC 9.7.1
public function get_gateway_id( $context = 'view' ) { return $this->get_prop( 'gateway_id', $context ); }