WC_Payment_Token::set_gateway_id()publicWC 2.6.0

Set the gateway ID.

Method of the class: WC_Payment_Token{}

No Hooks.

Return

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() code WC 8.7.0

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