Checkout
Checkout class.
Description Description
Source Source
File: packages/woocommerce-blocks/src/BlockTypes/Checkout.php
Methods Methods
- deep_sort_with_accents — Removes accents from an array of values, sorts by the values, then returns the original array values sorted.
- enqueue_assets — Enqueue frontend assets for this block, just in time for rendering.
- enqueue_data — Extra data passed through from server to client for block.
- get_block_type_editor_script — Get the editor script handle for this block type.
- get_block_type_script — Get the frontend script handle for this block type.
- get_skeleton — Render skeleton markup for the checkout block.
- hydrate_customer_payment_methods — Get customer payment methods for use in checkout.
- hydrate_from_api — Hydrate the checkout block with data from the API.
- include_token_id_with_payment_methods — Callback for woocommerce_payment_methods_list_item filter to add token id to the generated list.
- is_checkout_endpoint — Check if we're viewing a checkout page endpoint, rather than the main checkout page itself.
- render — Append frontend scripts when rendering the block.