Can't save a debit card after an in-person payment (INVALID_CARD_DATA)

Can’t save a debit card after an in-person payment (INVALID_CARD_DATA)

We’re getting INVALID_CARD_DATA on CreateCard with a buyer-present payment and would appreciate a look.

Flow: Mobile Payments SDK on an iPad + Square Stand takes a delayed-capture payment (autocomplete: false). About 6 seconds later, while the payment is still APPROVED, we call POST /v2/cards with the payment ID as source_id to save the card for a subscription.

Response:
{“category”:“INVALID_REQUEST_ERROR”,“code”:“INVALID_CARD_DATA”,“detail”:“Invalid card data.”,“field”:“source_id”}

Example payment: aGNGfM6Xc7ga8wXBaD5bFcpVyaaZY

  • CreateCard called at 2026-10-11 17:54:52 UTC
  • Card: Mastercard DEBIT, not prepaid, entry_method CONTACTLESS
  • application_name “US DEBIT”, application_identifier A0000000042203
  • The payment had no customer_id attached. We saved the card to an existing customer found by email.

Every failure we’ve seen is a debit card read through the US Common Debit AID (5 attempts, including one chip insert). Credit cards with the same flow always succeed.

Questions:

  1. Was this blocked by card-storage security controls, or by throttling from the donor’s earlier attempts (same card on Oct 5)?
  2. Would attaching the customer to the payment (PaymentParameters.customerID) before the tap fix this? We’re making that change now.
  3. Can a card be saved from a payment processed through the US Common Debit AID at all?

Application ID: sq0idp-kt-6g2MHFsJB4J8uT5P-Fw

Hi, INVALID_CARD_DATA on CreateCard is a generic response indicating that Square couldn’t store the card. A successful payment doesn’t guarantee that the card can also be saved on file.
Possible reasons include card eligibility, issuer-side verification or declines, and card-storage security controls. The response doesn’t identify which applies here, but it might be the donor’s October 5 attempts.

Attaching the customer before the tap isn’t a documented prerequisite for saving a card from a payment ID. The destination customer is supplied through card.customer_id in CreateCard, which your described request already includes. Adding PaymentParameters.customerID therefore isn’t a confirmed fix.

The Cards API supports debit cards generally, but I don’t yet have a confirmed answer for payments processed through the US Common Debit AID. The consistent debit-versus-credit pattern is a useful clue, but it doesn’t establish that this routing path is unsupported.

The next step is to review the underlying processing details for your example CreateCard call to identify the rejection reason. That would let us answer the security-control and AID questions more definitively. You can DM me any information you find relevant while I continue to investigate this further.