How to Enable Email & Text Channels
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.
π InternalNot visible in the public site
EMAIL_TO_ADD or TEXT_TO_ADD field anywhere in the request or response. Each channel is requested as "EMAIL" or "TEXT" in config.paymentMethodChannel.card (or config.vendors[].paymentMethods[].channels for V2 sessions); which flow you get is determined by config.modes.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