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'


Top ↑

Return Return

(string) Gateway ID


Top ↑

Source Source

File: includes/abstracts/abstract-wc-payment-token.php

	public function get_gateway_id( $context = 'view' ) {
		return $this->get_prop( 'gateway_id', $context );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.