Checking access…

Skip to main content
Version: v2
Audience: Consumers, CCG Platform Engineers

Replaced Payment Method

When a vendor (e.g., Stripe) tells CCG that a saved card has been reissued — most commonly due to expiration, loss/theft, or a card-network update — CCG automatically replaces the old card with the new one in the customer's wallet and notifies merchants so their records stay in sync.

Integration Details
  • Prerequisite: A customer wallet with a saved CARD or BANK_ACCOUNT payment method.
  • Webhook: PAYMENT_METHOD_REPLACED
  • Use: Understanding and reacting to automatic payment-method replacement
🔒 InternalNot visible in the public site
Internal: Technical Processing Details

Replacement processing steps and common replacement triggers have moved to Engineering Guide → Replaced Payment Method — Processing.

Status Handling​

There is no status to poll for this flow — it completes atomically on CCG's side once the vendor notification is processed. Confirm the outcome via the PAYMENT_METHOD_REPLACED webhook (below).

Webhooks​

Not yet in the webhooks-v2 OpenAPI spec

Payment-method lifecycle events are not currently modeled in /webhooks-v2/ (only Payment, Refund, and Dispute are). The event names and payload below reflect current platform behavior; confirm with your CCG integration contact before relying on them as a versioned contract.

EventWhen Triggered
PAYMENT_METHOD_DELETEDThe old payment method (card A) is removed from the wallet
PAYMENT_METHOD_REPLACEDThe replacement is complete; includes both the new payment method and the deleted one's ID
PAYMENT_METHOD_REPLACED event
{
"name": "PAYMENT_METHOD_REPLACED",
"payload": {
"paymentMethod": { // Payment Method information of CARD B
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"card": {
"last4": "5678",
"type": "CARD",
"status": "ACTIVE",
"cardBrand": "VISA",
"expiryYear": 2028,
"nameOnCard": "John Doe",
"expiryMonth": 12,
"zipCode": "12345",
"manufacturerCard": false
},
"paymentMethodDetails": {
"last4": "5678",
"type": "CARD",
"status": "ACTIVE",
"cardBrand": "VISA",
"expiryYear": 2028,
"nameOnCard": "John Doe",
"expiryMonth": 12,
"zipCode": "12345",
"manufacturerCard": false
},
"default": true,
"paymentMethodType": "CARD",
"nickname": "Personal Card"
},
"customer": {
"enterpriseId": "enterprise id",
"hsid": "hsid",
"dateOfBirth": "YYYY-MM-DD",
"metadata": {
"patientId": "rx-patient-id"
}
},
"agent": {
"firstName": "First Name",
"lastName": "Last Name",
"userId": "msId",
"isAccessVerified": true
},
"deletedPaymentMethodId": "597f6eca-6276-4993-bfeb-53cbbbba6f12" // CCG Payment Method ID of CARD A
}
}
caution

PAYMENT_METHOD_REPLACED always arrives alongside a PAYMENT_METHOD_DELETED event for the old payment method. Process both — do not rely on one in isolation.

Error Handling​

This is a vendor-event-driven flow with no merchant-initiated request to fail. If a webhook delivery is missed, the old payment-method ID (card A) no longer resolves.

CCG onlyThis CCG guidance is not exposed in Optum Wallet.

Reconcile by searching the customer's current wallet state instead — see Reference: Replaced Payment Method — Error Handling.

FAQ​

What happens to subscriptions that use the replaced payment method?​

Subscriptions and recurring payments using the old payment method automatically use the new one, provided your integration has implemented proper handling of the PAYMENT_METHOD_REPLACED event.

Can customers opt out of automatic payment method replacement?​

No — this is a system-level behavior that maintains wallet integrity and ensures payment methods remain current.

How quickly does the replacement process occur?​

Near real-time, once CCG receives the update event from the payment vendor.

What if I miss the replacement webhook event?​

The old payment-method ID (card A) no longer resolves.

CCG onlyThis CCG guidance is not exposed in Optum Wallet.

Search the customer's current wallet via POST /v2/payment-methods/search (by email or HSID) to find the replacement card — see Reference: Replaced Payment Method — Error Handling.

Integration Checklist​

  • Handle PAYMENT_METHOD_DELETED and PAYMENT_METHOD_REPLACED as a pair, not independently
  • Update any stored references to the old payment method ID (deletedPaymentMethodId) to the new one
  • Update recurring-payment or saved-instruction references to use the new payment method ID
  • Implement reconciliation for missed webhook events rather than assuming delivery is guaranteed
CCG onlyThis CCG guidance is not exposed in Optum Wallet.