{{#partial "page"}}
{{> components/account/navigation account_page='payment_methods'}}
{{#if forms.error}} {{> components/common/alert/alert-error forms.error}} {{/if}} {{#with customer.edit_stored_instrument}}

{{lang 'account.payment_methods.payment_method'}}

{{#if type '===' 'stored_card'}}
{{lang 'account.payment_methods.credit_card_number'}}
**** **** **** {{last_4}}
{{lang 'account.payment_methods.expiration'}}
{{expiry_month}}/{{expiry_year}}
{{/if}} {{#if type '===' 'stored_paypal_account'}}

{{lang 'account.payment_methods.paypal'}} {{lang 'common.account'}}

{{email}}

{{/if}}
{{#if type '===' 'stored_card'}}

{{lang 'account.payment_methods.billing_address'}}

{{#each forms.billing_fields}} {{{dynamicComponent 'components/common/forms'}}} {{/each}}
{{/if}}
{{lang 'common.cancel'}} {{inject 'required' (lang 'common.required')}} {{inject 'state_error' (lang 'errors.state_error')}}
{{/with}}
{{/partial}} {{> layout/account}}