WC_Payment_Token::set_gateway_id
Set the gateway ID.
Method of the class: WC_Payment_Token{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Payment_Token = new WC_Payment_Token(); $WC_Payment_Token->set_gateway_id( $gateway_id );
- $gateway_id(string) (required)
- Gateway ID.
Changelog
| Since 2.6.0 | Introduced. |
WC_Payment_Token::set_gateway_id() WC Payment Token::set gateway id code WC 10.7.0
public function set_gateway_id( $gateway_id ) {
$this->set_prop( 'gateway_id', $gateway_id );
}