Pre-1.0 · one maintainer · Stripe and cards only · no SDKs (client libraries) yet · no production users yet. Docs describe v0.12.0 (30 Nov 2026) · What’s new →
The payment method object
A payment method saved for a customer in Stripe. Hardcount charges
only a chargeable one, a card. The payment-method routes under
/ return it, and the
payment_ webhook events carry it.
Example
Section titled “Example”{ "id": "hc_pm_4f8a2c9e1b7d3a6f0c5e8b21", "customer_id": "hc_cus_dakhnk2q3gpgqfoq5c0g", "type": "card", "chargeable": true, "card_brand": "visa", "card_last4": "4242", "card_exp_month": 12, "card_exp_year": 2029, "is_default": true, "created_at": "2026-10-02T11:48:30Z"}Fields
Section titled “Fields”| Field | Type | Always present | What it means |
|---|---|---|---|
id |
string | Yes | The payment method’s ID in Hardcount, hc_pm_ and 24 hex characters. |
customer_ |
string | Yes | The customer the payment method belongs to. |
type |
string | Yes | The payment method’s type as Stripe names it, such as card or link. Any type Stripe saves is listed, including ones Hardcount does not know. |
chargeable |
boolean | Yes | Whether Hardcount can charge this payment method: true for a card. One that isn’t is listed and never becomes the default. |
card_ |
string | No | The card network as Stripe names it, such as visa or mastercard. Absent when Stripe sent none. |
card_ |
string | No | The last 4 digits of the card number. Absent when Stripe sent none. |
card_ |
integer | No | The card’s expiry month, 1 to 12. Absent when Stripe sent none. |
card_ |
integer | No | The card’s expiry year, such as 2029. Absent when Stripe sent none. |
is_ |
boolean | Yes | Whether this is the card Hardcount charges. A customer with a chargeable payment method has one default. |
created_ |
string (date-time) | Yes | When the payment method was saved. |
Stuck, or found a bug? Ask in Discussions · Open an issue