createPaymentPrompt
Static helper that builds a payment prompt object for use with the prompts
parameter of pay().
Payment prompts customize the TTS messages played during different stages of
payment collection.
Parameters
forSituation
The payment stage this prompt applies to (e.g., "payment-card-number",
"expiration-date", "security-code", "postal-code").
actions
List of prompt actions. Use createPaymentAction()
to build each entry.
cardType
Space-separated card types this prompt applies to (e.g., "visa mastercard").
errorType
Space-separated error types this prompt handles.
Returns
PaymentPrompt — A prompt object to pass in the prompts list of pay().