{"title":"PaymentMethod - Liquid Object Reference","slug":"payment-method-liquid-object-reference","url":"https://support.storeconnect.com/articles/payment-method-liquid-object-reference","url_markdown":"https://support.storeconnect.com/articles/payment-method-liquid-object-reference.md","subtitle":null,"summary":"The PaymentMethod object is a card, bank account, or digital wallet a customer has saved with a payment provider. Use it to list a signed-in customer\u0026#39;s saved payment methods or offer the default one at checkout.","type":"Developer_Documentation","video_url":"","keywords":"liquid, objects, PaymentMethod, payment method, saved card, saved payment method, default payment method, checkout, template, storeconnect","last_modified":"2026-11-25T21:09:53+0000","body_markdown":"## Description\n\nThe PaymentMethod object is a card, bank account, or digital wallet a customer has saved with a payment provider. See [saved payment methods](saved-payment-methods) for how customers save them.\n\n`current_customer.payment_methods` lists the signed-in customer's saved methods for the current store, with the default first. A method is listed only while the payment provider it is saved with is active.\n\n## Backed by\n\nThis drop renders the [`s_c__Payment_Method__c`](payment-method-object-reference) Salesforce object. A theme writes it as `payment_method`.\n\n## Attributes\n\n| Attribute | Type | Description |\n|-----------|------|-------------|\n| `account_type` | String | Returns the bank account type: `checking` or `savings` |\n| `bank_identifier_type` | String | Returns the type of bank routing identifier |\n| `bank_name` | String | Returns the name of the bank |\n| `card_brand` | String | Returns the card brand, such as Visa or Mastercard |\n| `display_name` | String | Returns the nickname if the customer set one. Otherwise returns a label built from the type and details, such as the card brand and last four digits |\n| `expires_at` | String | Returns the expiry date of the saved payment method (ISO 8601), or nil if none is stored |\n| `funding_type` | String | Returns the card funding type: `credit`, `debit`, or `prepaid` |\n| `id` | String | Returns the unique id for this PaymentMethod |\n| `is_default?` | Boolean | Returns true if this is the customer's default payment method |\n| `last_four` | String | Returns the last four digits of the card or account |\n| `nickname` | String | Returns the nickname the customer set for this payment method |\n| `payment_provider` | [PaymentProvider](payment-provider-liquid-object-reference) | Returns the PaymentProvider this payment method is saved with |\n| `type` | String | Returns the payment method type: `card`, `bank_account`, or `digital_wallet` |\n| `wallet_type` | String | Returns the digital wallet type: `apple_pay`, `google_pay`, or `paypal` |\n\n## Example\n\nList the signed-in customer's saved payment methods and mark the default:\n\n\n```liquid\n\n{%- if current_customer %}\n  \u003cul\u003e\n    {%- for method in current_customer.payment_methods %}\n      \u003cli\u003e\n        {{ method.display_name }}\n        {%- if method.expires_at %} (expires {{ method.expires_at | date: \"%m/%Y\" }}){% endif %}\n        {%- if method.is_default? %} \u003cstrong\u003eDefault\u003c/strong\u003e{% endif %}\n      \u003c/li\u003e\n    {%- endfor %}\n  \u003c/ul\u003e\n{%- endif %}\n```\n\n\n## Available on\n\n- [Contact - Liquid Object Reference](contact-liquid-object-reference) — `default_payment_method`, `payment_methods`"}