Abstract_WC_Order_Data_Store_CPT::update_payment_token_ids()publicWC 1.0

Update token ids for an order.

Method of the class: Abstract_WC_Order_Data_Store_CPT{}

No Hooks.

Return

null. Nothing (null).

Usage

$Abstract_WC_Order_Data_Store_CPT = new Abstract_WC_Order_Data_Store_CPT();
$Abstract_WC_Order_Data_Store_CPT->update_payment_token_ids( $order, $token_ids );
$order(WC_Order) (required)
Order object.
$token_ids(array) (required)
Payment token ids.

Abstract_WC_Order_Data_Store_CPT::update_payment_token_ids() code WC 9.4.2

public function update_payment_token_ids( $order, $token_ids ) {
	update_post_meta( $order->get_id(), '_payment_tokens', $token_ids );
}