WC_Abstract_Order::get_payment_tokens()
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() WC Abstract Order::get payment tokens code WC 9.8.1
public function get_payment_tokens() { return $this->data_store->get_payment_token_ids( $this ); }