WC_Abstract_Order::get_payment_tokens()publicWC 2.6

Returns a list of all payment tokens associated with the current order

Method of the class: WC_Abstract_Order{}

No Hooks.

Return

Array. An array of payment token objects

Usage

$WC_Abstract_Order = new WC_Abstract_Order();
$WC_Abstract_Order->get_payment_tokens();

Changelog

Since 2.6 Introduced.

WC_Abstract_Order::get_payment_tokens() code WC 8.6.1

public function get_payment_tokens() {
	return $this->data_store->get_payment_token_ids( $this );
}