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 informationAmount to charge (e.g., "29.99").
Currency code (e.g., "USD", "EUR").
Whether to collect CVV ("true" or "false").
Whether to collect postal code ("true" or "false").
URL to receive payment status webhooks.
Payment method type (e.g., "credit-card").
Timeout for the payment session.
Maximum number of retry attempts for failed input.
Minimum length required for the postal code.
Type of payment token to generate.
Language for payment prompts (e.g., "en").
Voice for payment prompts.
Description of the payment or charge.
Comma-separated list of accepted card types (e.g., "visa,mastercard").
Additional payment connector parameters.
Custom prompt overrides for the payment flow.
Callback invoked when the payment operation completes.
Promise<PayAction> — An action handle with
stop() and wait() methods.