Checking access…

Skip to main content
Audience: CCG Platform Engineers

Duplicate Payment Method β€” Processing

Platform engineers implementing or debugging duplicate payment-method detection. See the Duplicate Payment Method developer page for the merchant-facing contract.

Processing detail for the Duplicate Payment Method developer page.

Version scope

Duplicate payment-method handling applies to both V1 and V2. The sequence below illustrates the V2 setup-payment-method endpoint and response.

Processing Steps​

  1. Customer or merchant backend submits a new payment method via the setup-payment-method flow.
  2. CCG checks the incoming payment method's identifying attributes (card number + vendor fingerprint, or bank account + routing number) against the customer's existing wallet.
  3. If a match is found, CCG updates the existing record with any new metadata (expiry date, cardholder name, nickname, zip code) instead of creating a new entry.
  4. The newly submitted entry is discarded; CCG emits PAYMENT_METHOD_CREATED followed by PAYMENT_METHOD_UPDATED to reflect the attempted-create-then-actual-update sequence.
  5. The API response includes a DUPLICATE_ENTRY warning so the caller can distinguish this from a genuine new payment method.

Sequence Diagram​