WordPress at Your Fingertips
function is not described

WC_Abstract_Order::get_payment_tokens() public WC 2.6

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

{} It's a 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.

Code of WC_Abstract_Order::get_payment_tokens() WC 5.8.0

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