Collect and process a credit card payment during the call. Generates a SWML
pay verb that walks the caller through entering card details via DTMF or
voice, then submits to your payment connector endpoint.
Payment configuration object.
URL of your payment processing endpoint. SignalWire sends the collected card data to this URL for processing.
How the caller provides card details.
"dtmf" — caller enters digits on the keypad"voice" — caller speaks the numbersURL to receive payment status change webhook notifications.
Payment method type. Currently only "credit-card" is supported.
Seconds to wait for the next DTMF digit before timing out.
Number of retry attempts if payment collection fails.
Whether to prompt the caller for the card’s security code (CVV).
Whether to prompt for the billing postal code. Pass true to prompt, false
to skip, or a string with the actual postal code to use without prompting.
Minimum number of digits required for the postal code.
Payment token type.
"one-time" — single-use token"reusable" — token can be charged again laterAmount to charge as a decimal string (e.g., "49.99").
ISO 4217 currency code (e.g., "usd", "eur").
Language for TTS payment prompts (e.g., "en-US", "es-MX").
TTS voice for payment prompts (e.g., "woman", "man").
Custom description for the payment transaction.
Space-separated list of accepted card types.
Additional name/value pairs to send to the payment connector.
Use createPaymentParameter() to build entries.
Custom prompt configurations to override default payment prompts.
Use createPaymentPrompt() to build entries.
AI response template after payment completes. The ${pay_result} variable
is substituted with the payment outcome. When omitted, the default template
is used.
FunctionResult — this, for chaining.