{"object":"doc","slug":"saved-cards","title":"Saved cards (card on file)","summary":"Customers and saved payment methods. What ZeroPoint stores, the status of a saved card and why it becomes unusable, who holds the cardholder's agreement, and what is not offered.","tags":["concept","card-on-file","payments"],"body":"# Saved cards (card on file)\n\nA saved card lets your app charge a customer again without asking for the card each time: a membership renewal, a balance due, a second purchase. Two objects carry it.\n\n- A **customer** (`cus_...`) belongs to one merchant. It holds an optional `email`, `name` and your own ids in `metadata` (put your app's user id there). It never holds card data. Update it with `POST /v1/customers/{customer_id}` (Stripe's verb) or `PATCH`, the same operation; `metadata` merges key by key (see `api-conventions`).\n- A **payment method** (`pm_...`) is one saved card of one customer. It shows the brand, the last four digits and the expiry, never the card number.\n\nThe guides `save-a-card` and `charge-a-saved-card` walk through the calls.\n\n## What ZeroPoint stores\n\nThe card is typed into the hosted card form, inside the processor's own fields. Your page and your server receive a one-time `nonce`, never the card number or the CVV. When you save the card, ZeroPoint sends the nonce to the processor (GoDaddy Payments), which answers with a reusable token. ZeroPoint keeps that token sealed (encrypted) at rest, with the brand, the last four digits, the expiry month and year, and a fingerprint of the nonce. The token is never returned by any route, tool or event, and never logged.\n\nFacts about the processor behind this:\n\n- VERIFIED sandbox 10/28/2026: each save of the same card returns a new token. ZeroPoint never de-duplicates: two saves of one card are two payment methods.\n- VERIFIED sandbox 10/18/2026: a saved card charges with the token alone; no processor customer is created.\n- DOCS (read 11/16/2026): the processor documents no call that deletes or revokes a token. Deleting a payment method erases ZeroPoint's copy; the processor keeps its own.\n\n## Status\n\nEvery payment method has a `status`, computed on each read:\n\n| `status` | `status_reason` | Meaning | What to do |\n|---|---|---|---|\n| `active` | null | Can be charged | Charge it |\n| `unusable` | `processor_disconnected` | The merchant disconnected its payments account | Have the merchant reconnect the same account; the card turns `active` again with nothing else to do (ASSUMED, not yet probed: the token survives a reconnect to the same account) |\n| `unusable` | `processor_account_changed` | The merchant reconnected to a different payments account. A token only works on the account that made it | Ask the cardholder to enter the card again |\n| `unusable` | `application_changed` | ZeroPoint's processor application changed. VERIFIED 09/22/2026 that such tokens are dead at the processor | Ask the cardholder to enter the card again |\n| `unusable` | `token_erased` | The card stayed unusable for 30 days and ZeroPoint erased its token | Ask the cardholder to enter the card again |\n| `deleted` | null | You deleted it | Nothing; it stays listed with `include_deleted=true` |\n\nThe 30 days are counted from the first time ZeroPoint's cleanup saw the card unusable, so the real time is a little longer. A reconnect inside the 30 days stops the clock. Once a token is erased it never comes back, even after a reconnect. Erasing sends no event; read the method to see it.\n\nA decline never changes a card's status, and ZeroPoint does not refuse a charge because the printed expiry has passed: issuers often approve stored cards past it. You see `card.exp_month` and `card.exp_year` and decide.\n\n## Deleting a card\n\n`DELETE /v1/payment_methods/{payment_method_id}`, or `POST /v1/payment_methods/{payment_method_id}/detach` (Stripe's name for the same operation), erases the token at once and sends `payment_method.detached`. The method stays listed as a record with `status: deleted` and `customer: null`; past payments keep their brand and last four. While a payment that uses the card is still `pending` (its outcome not yet known), the delete answers `409 payment_method_in_use` with `Retry-After`, because that payment may still need the same token to finish. Wait and send the delete again. Because the processor keeps its own copy, \"deleted\" means \"ZeroPoint can no longer charge this card\", not \"the token no longer exists anywhere\".\n\n`GET /v1/customers/{customer_id}/payment_methods` lists one customer's saved cards, the same list as `GET /v1/payment_methods` with the `customer` filter.\n\n## Who holds the cardholder's agreement\n\nThe merchant. Your app must show the merchant's terms to the cardholder before a card is saved; what those terms say is between the merchant and its customer. ZeroPoint shows no terms and no consent wording on the hosted form and does not review the merchant's terms. When you save a card you send `consent.agreed_at` (when the cardholder agreed) and optionally `consent.reference` (your own id for that agreement); on each charge you send `initiated_by`. ZeroPoint keeps these as records only: it checks their format, never sends them to the processor, and does not verify them.\n\n## Cards that cannot be saved\n\n- **Wallets.** Apple Pay and Google Pay cannot be saved. DOCS (processor card-on-file guide, read 11/16/2026): \"Payment information will not be saved if a customer uses ApplePay or GooglePay as a payment method.\" A wallet payment is charged once as a keyed payment. If a saved card's answer shows a wallet source, the save fails with `card_not_saved` and nothing is stored.\n- **Terminals.** A card tapped or dipped on a terminal cannot be saved. Card on file uses the hosted card form only.\n\n## Test mode and live mode\n\nIn test mode a saved card comes from a test card token with no browser (`\"nonce\": \"tok_visa\"`, see `sandbox`, \"Test card tokens\"), or from a real sandbox save: a person types a test card into the hosted form in an ordinary browser, and your app saves the nonce. The simulated terminal plays no part. Once saved, the card can be charged as often as you like with no browser. Live use is switched on per platform by ZeroPoint; see `going-live`.\n\n## What is not offered\n\n- No token export: a saved card cannot be exported or moved to another processor or service, and the token is never shown to you.\n- No card updater: a reissued card is not updated automatically; ask the cardholder for the new card.\n- USD only, United States merchants only, as for every payment.\n- No processor customers, no de-duplication of cards, no default-card flag, no editing of a saved card (save a new one and delete the old one), and no deleting of customers yet.\n- No saving on a terminal or from a wallet (above).\n- No AVS or CVV results on the method.","updated":1795275945}