RELAYCall
Start a payment collection session on the call. Collects credit card or other
payment information from the caller via DTMF. Returns a
PayAction that you can use to stop
the payment flow or wait for it to complete.
This method emits calling.call.pay events. See Call Events for payload details.
URL of the payment connector service that processes the payment.
Custom control ID. Auto-generated if not provided.
How the caller provides payment info.
"dtmf" — caller enters digits on the keypad"speech" — caller speaks the payment informationURL to receive payment status webhooks.
Payment method type. Valid values: "credit-card".
Timeout for the payment session.
Maximum number of input attempts before failing.
Whether to collect CVV.
"true" — prompt the caller for the security code"false" — skip security code collectionWhether to collect postal code.
"true" — prompt the caller for the postal code"false" — skip postal code collectionMinimum length for the postal code.
Tokenization type for the payment data.
Amount to charge (e.g., "29.99").
Currency code (e.g., "USD", "EUR").
Language for payment prompts (e.g., "en").
Voice for TTS prompts during the payment flow.
Description of the payment/charge.
Comma-separated list of accepted card types (e.g., "visa,mastercard,amex").
Additional parameters to pass to the payment connector.
Custom prompts for the payment flow.
Callback invoked when the payment operation completes.
PayAction — An action handle with
stop() and wait() methods.