WC_Payment_Tokens::get_token_type_by_id( int $token_id )

Returns what type (credit card, echeck, etc) of token a token is by ID.


Description Description


Parameters Parameters

$token_id

(Required) Token ID.


Top ↑

Return Return

(string) Type.


Top ↑

Source Source

File: includes/class-wc-payment-tokens.php

	public static function get_token_type_by_id( $token_id ) {
		$data_store = WC_Data_Store::load( 'payment-token' );
		return $data_store->get_token_type_by_id( $token_id );
	}

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.