{{ customer }}

Examples

{{ customer.payment_methods }}

<!-- templates/components/account/payment-methods-list.html -->

{{#each customer.payment_methods}}
    {{!-- Check that the current instrument type is within our whitelist to stop future ones automagically coming through --}}
    {{#inArray ../theme_settings.supported_payment_methods type}}
        <h4 class="paymentMethodsTitle">
            {{display_name}}
        </h4>
        ...
{{/each}}

Schemas

{{ customer }}
templates/pages/account/*
object
addresses
null
email
string
id
integer
name
string
num_new_messages
integer
num_wishlists
string
payment_methods
object
phone
string
recently_viewed_products
null
returns
null
shipping_address
object
store_credit
object
wishlists
null
{{ customer.payment_methods }}
object
payment_method_name_key
object
selected_payment_method
null
{{ customer.payment_methods }}
account_payment_methods_v2
Replaces customerPaymentMethods object used in payment_methods.html templates when account_payment_methods_v2 is enabled in config.json > meta > features.
array[object]

Replaces customerPaymentMethods object used in payment_methods.html templates when account_payment_methods_v2 is enabled in config.json > meta > features.

display_name
string

value from the name provided by merchants

add_url
null or string
type
string
1 validation + required
stored_instruments
array[object]
instruments
array[object]