---
title: "PaymentMethod - Liquid Object Reference"
source: https://support.storeconnect.com/articles/payment-method-liquid-object-reference
type: article
format: markdown
site: StoreConnect Support — product and developer documentation for StoreConnect
site_index: https://storeconnect.com/llms.txt
docs_index: https://support.storeconnect.com/llms.txt
note: Append .md to any page or article URL on this site to get its Markdown form.
---
# PaymentMethod - Liquid Object Reference

## Description

The 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.

`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.

## Backed by

This drop renders the [`s_c__Payment_Method__c`](payment-method-object-reference) Salesforce object. A theme writes it as `payment_method`.

## Attributes

| Attribute | Type | Description |
|-----------|------|-------------|
| `account_type` | String | Returns the bank account type: `checking` or `savings` |
| `bank_identifier_type` | String | Returns the type of bank routing identifier |
| `bank_name` | String | Returns the name of the bank |
| `card_brand` | String | Returns the card brand, such as Visa or Mastercard |
| `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 |
| `expires_at` | String | Returns the expiry date of the saved payment method (ISO 8601), or nil if none is stored |
| `funding_type` | String | Returns the card funding type: `credit`, `debit`, or `prepaid` |
| `id` | String | Returns the unique id for this PaymentMethod |
| `is_default?` | Boolean | Returns true if this is the customer's default payment method |
| `last_four` | String | Returns the last four digits of the card or account |
| `nickname` | String | Returns the nickname the customer set for this payment method |
| `payment_provider` | [PaymentProvider](payment-provider-liquid-object-reference) | Returns the PaymentProvider this payment method is saved with |
| `type` | String | Returns the payment method type: `card`, `bank_account`, or `digital_wallet` |
| `wallet_type` | String | Returns the digital wallet type: `apple_pay`, `google_pay`, or `paypal` |

## Example

List the signed-in customer's saved payment methods and mark the default:


```liquid

{%- if current_customer %}
  <ul>
    {%- for method in current_customer.payment_methods %}
      <li>
        {{ method.display_name }}
        {%- if method.expires_at %} (expires {{ method.expires_at | date: "%m/%Y" }}){% endif %}
        {%- if method.is_default? %} <strong>Default</strong>{% endif %}
      </li>
    {%- endfor %}
  </ul>
{%- endif %}
```


## Available on

- [Contact - Liquid Object Reference](contact-liquid-object-reference) — `default_payment_method`, `payment_methods`

---

## Follow StoreConnect

- [Email Newsletter](https://storeconnect.com/c/lp-newsletter)
- [LinkedIn Newsletter](https://www.linkedin.com/build-relation/newsletter-follow?entityUrn=7444956928444862464)
- [YouTube](https://www.youtube.com/channel/UCngKdP2x8l1wcbAKW3tvU8g)
- [LinkedIn](https://www.linkedin.com/company/storeconnect)
- [X / Twitter](https://x.com/storeconnecthq)

## Popular Links

- [Partners](https://storeconnect.com/partners)
- [Become a Partner](https://storeconnect.com/become-a-partner)
- [News](https://storeconnect.com/articles/news)
- [Events](https://storeconnect.com/articles/events)
- [Feature Comparison](https://storeconnect.com/how-we-compare)
- [Download a free trial](https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000FMkeKUAT)
- [Book a Demo](https://storeconnect.com/contact)

## Documentation

- [Help documentation](https://support.storeconnect.com/help-documentation)
- [AI agents](https://support.storeconnect.com/ai)
- [Videos & tutorials](https://support.storeconnect.com/videos-tutorials)
- [Developer reference](https://support.storeconnect.com/developer-reference)
- [Release notes](https://support.storeconnect.com/release-notes)
- [Troubleshooting](https://support.storeconnect.com/troubleshooting)
- [Trust Center](https://trust.getstoreconnect.com/)
- [Status Page](https://status.storeconnect.com/)

## Contact

- info@getstoreconnect.com
- US +1 415 745 3230
- AUS +61 2 8365 2308

100 S Ashley Dr, Suite 600-2461
Tampa FL 33602-600 USA

Level 22, Sydney Place
180 George Street
Sydney, NSW, 2000, AUS

## Machine-readable

- [Site index for agents](https://storeconnect.com/llms.txt): curated map of the StoreConnect site in llms.txt format
- [Documentation index for agents](https://support.storeconnect.com/llms.txt): full technical and product documentation map

Every page and article on this site has a Markdown rendering: append `.md` to its URL.

Continue in Markdown: [Help documentation](https://support.storeconnect.com/help-documentation.md) · [Developer reference](https://support.storeconnect.com/developer-reference.md) · [Videos & tutorials](https://support.storeconnect.com/videos-tutorials.md) · [Release notes](https://support.storeconnect.com/release-notes.md)

---

StoreConnect Support — https://support.storeconnect.com/articles/payment-method-liquid-object-reference