How to Enable Email & Text Channels
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
| Flow | Channel value | config.modes | Required customer field |
|---|---|---|---|
| EMAIL_TO_ADD: Adding a payment method | "EMAIL" | PAYMENT_METHOD_ENTRY | customer.email |
| TEXT_TO_ADD: Adding a payment method | "TEXT" | PAYMENT_METHOD_ENTRY | customer.phoneNumber |
| EMAIL_TO_PAY: Making a payment | "EMAIL" | PAYMENT | customer.email |
| TEXT_TO_PAY: Making a payment | "TEXT" | PAYMENT | customer.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.
{
"customer": {
"email": "jane.doe@example.com",
"hsid": "<customer-hsid>"
},
"agent": {
"userId": "agent@example.com"
},
"config": {
"modes": ["PAYMENT_METHOD_ENTRY"],
"paymentMethodChannel": {
"card": ["EMAIL"]
}
}
}
{
"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.
Related Documentation
- Create a Session — full request shape, including the
config.paymentMethodChannelfield - Sessions — Modes, Config & Status Reference — every
config.modesvalue and config field - Initiate an Agent-Assisted Session — the
agentobject required for agent-initiated sessions