Checkout::include_token_id_with_payment_methods( array $list_item, WC_Token $token )
Callback for woocommerce_payment_methods_list_item filter to add token id to the generated list.
Description Description
Parameters Parameters
- $list_item
-
(Required) The current list item for the saved payment method.
- $token
-
(Required) The token for the current list item.
Return Return
(array) The list item with the token id added.
Source Source
File: packages/woocommerce-blocks/src/BlockTypes/Checkout.php