Checking access…

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

One-Time Pay & Pay and Save

When to use this page

Submitting a single payment with payment method details entered inline β€” for a one-time payment, or to save the method to the customer's wallet while paying. For paying with a payment method already saved in the wallet, see Make a Payment from Wallet.

One-Time Pay and Pay and Save both submit new payment method details inline in the same request β€” paymentMethodId isn't used, since there's nothing in the wallet yet to reference. The only difference between the two is the savePaymentMethod flag on the allocation's inline paymentMethod object:

savePaymentMethodSaved to wallet afterward?
One-Time Payfalse (default)No β€” used for this transaction only
Pay and SavetrueYes β€” reusable in future transactions
Merchant-PCI scope only

Inline payment method entry is only supported at merchant-pci scope, for both CARD and BANK_ACCOUNT. There is no inline-entry equivalent at merchant scope β€” it only supports paymentMethodId (stored payment method) allocations.

API Request​

CARD​

For CARD, paymentMethodDetails carries a vendor-tokenized reference β€” the client tokenizes the card with the vendor (e.g., Stripe) before it ever reaches CCG. CCG never receives the raw card number.

{
"merchantTransactionId": "c407ecc7-25f0-4fd9-844b-e9baca53707a",
"amount": 100,
"customer": { "hsid": "b313c1d1-b5b6-4ec7-8b5a-3a9cf7755060" },
"paymentAllocations": [
{
"amount": 100,
"paymentMethod": {
"savePaymentMethod": true,
"default": false,
"nickname": "My Card",
"paymentMethodDetails": {
"type": "CARD",
"nameOnCard": "John Doe",
"last4": "4242",
"vendorPaymentmethodId": "pm_1J2Y7e2eZvKYlo2C0qL5a2b"
}
}
}
]
}

BANK_ACCOUNT (ACH)​

Unlike CARD, BANK_ACCOUNT has no tokenization step β€” routingNumber and accountNumber are sent directly. A consent object is also required at the payment level for every ACH payment, one-time or saved.

{
"merchantTransactionId": "c407ecc7-25f0-4fd9-844b-e9baca53707a",
"amount": 100,
"customer": { "hsid": "b313c1d1-b5b6-4ec7-8b5a-3a9cf7755060" },
"consent": {
"merchantConsentId": "consent_id_20230501",
"collectionTimestamp": "2023-11-03T10:15:30.100+01:00",
"collectionDetails": { "type": "WEB" }
},
"paymentAllocations": [
{
"amount": 100,
"paymentMethod": {
"savePaymentMethod": false,
"paymentMethodDetails": {
"type": "BANK_ACCOUNT",
"accountType": "checking",
"routingNumber": "011000015",
"accountNumber": "000123456789",
"nameOnAccount": "John Doe"
}
}
}
]
}
Full consent object schema

See Collect ACH Consent for the complete consent object fields and collection types.

API Response​

The response shape is identical for one-time-pay and pay-and-save β€” paymentAllocations[].paymentMethod always echoes back the payment method used. The only way to confirm whether it was saved is to check the customer's wallet afterward (POST /v2/payment-methods/search); savePaymentMethod itself isn't echoed in the response.

Full response catalog

See Payment β€” Status & Response Reference for the exact JSON shape.

Manufacturer Card variants​

One-time-pay, pay-and-save, and guest payment can all use a manufacturer (MF) card β€” set cardCategory on the inline paymentMethod object. Eligibility (whether MF card category is enabled, whether a medication is linked) differs slightly per use case β€” see Manage Manufacturer Card for the field, and Manufacturer Card for the cardCategory schema.