WC_Payment_Token::get_gateway_id( string $context = 'view' )
Returns the ID of the gateway associated with this payment token.
Description Description
Parameters Parameters
- $context
-
(Optional) In what context to execute this.
Default value: 'view'
Return Return
(string) Gateway ID
Source Source
File: includes/abstracts/abstract-wc-payment-token.php
public function get_gateway_id( $context = 'view' ) { return $this->get_prop( 'gateway_id', $context ); }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |