Prompt
The <Prompt> noun allows you to customize the default prompts used by <Pay>.
When SignalWire executes <Pay> CXML instructions without <Prompt>, the caller will hear default prompts for each step of the
payment process. You can modify what the caller hears for a given payment step by nesting <Prompt> within <Pay>’s opening
and closing tags.
You can customize prompts using either:
- Text-to-speech by nesting
<Say>CXML within<Prompt> - Pre-recorded audio by nesting
<Play>CXML within<Prompt>
Payment steps
There are seven payment steps in the <Pay> process where prompts can be customized (see the for attribute section below).
Each step that you wish to customize requires its own <Prompt> element.
Attributes
Specifies which payment step’s prompt you wish to customize. Allowed values: payment-card-number, expiration-date, security-code, postal-code, bank-routing-number, bank-account-number, payment-processing. See Payment Steps for details.
Specifies which attempt number this prompt should be used for. Value from 1 to 10. Useful for providing more detailed instructions after failed attempts.
Space-separated list of card types. Allows customization of prompts for specific card types (e.g., different security code lengths). Allowed values: visa, mastercard, amex, maestro, discover, optima, jcb, diners-club, enroute.
Space-separated list of error types. Customize error messages for specific failure scenarios. Allowed values: timeout, invalid-card-number, invalid-card-type, invalid-date, invalid-security-code, invalid-bank-routing-number, invalid-bank-account-number, input-matching-failed.
Payment step
Specifies which payment step’s prompt you wish to customize: