WordPress at Your Fingertips
function is not described

WC_Payment_Token::set_gateway_id() public WC 2.6.0

Set the gateway ID.

{} It's a method of the class: WC_Payment_Token{}

No Hooks.

Return

null. Nothing.

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.

Code of WC_Payment_Token::set_gateway_id() WC 5.5.2

<?php
public function set_gateway_id( $gateway_id ) {
	$this->set_prop( 'gateway_id', $gateway_id );
}