Checking access…

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

How to Enable Email & Text Channels

When to use this page

Having your support agent send a secure link — by email or SMS — so the customer completes entry or payment on their own device.

The EMAIL and TEXT channels let agents send secure payment or payment-method-addition links to customers via email or SMS, respectively. Customers then complete the required action on their own device by following the link. The two channels behave identically — they differ only in the delivery medium and which customer contact field is required.

Flows​

FlowChannel valueconfig.modesRequired customer field
EMAIL_TO_ADD: Adding a payment method"EMAIL"PAYMENT_METHOD_ENTRYcustomer.email
TEXT_TO_ADD: Adding a payment method"TEXT"PAYMENT_METHOD_ENTRYcustomer.phoneNumber
EMAIL_TO_PAY: Making a payment"EMAIL"PAYMENTcustomer.email
TEXT_TO_PAY: Making a payment"TEXT"PAYMENTcustomer.phoneNumber

Enabling These Channels​

Include "EMAIL" and/or "TEXT" in config.paymentMethodChannel.card, and set the matching customer contact field — the agent session must have a valid email address or phone number to send the link to.

Agent session request — EMAIL_TO_ADD
{
"customer": {
"email": "jane.doe@example.com",
"hsid": "<customer-hsid>"
},
"agent": {
"userId": "agent@example.com"
},
"config": {
"modes": ["PAYMENT_METHOD_ENTRY"],
"paymentMethodChannel": {
"card": ["EMAIL"]
}
}
}
Agent session request — TEXT_TO_ADD
{
"customer": {
"phoneNumber": { "number": "9876543210", "countryCode": "1" },
"hsid": "<customer-hsid>"
},
"agent": {
"userId": "agent@example.com"
},
"config": {
"modes": ["PAYMENT_METHOD_ENTRY"],
"paymentMethodChannel": {
"card": ["TEXT"]
}
}
}

For the *_TO_PAY flows, set config.modes to ["PAYMENT"] instead — everything else is unchanged. You can also include both "EMAIL" and "TEXT" together in config.paymentMethodChannel.card if the agent should be able to choose either at send time.

For the full field reference (including the V2 config.vendors[] form), see Create a Session and Sessions — Modes, Config & Status Reference.


Add Payment Method Flow​

This flow allows an agent to send a link for adding a payment method to the customer's email address or phone number.


Make a Payment Flow​

This flow allows an agent to send a payment link to the customer's email address or phone number for completing a transaction.