create_payment_prompt
create_payment_prompt
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
for_situation
The payment stage this prompt applies to (e.g., "payment-card-number",
"expiration-date", "security-code", "postal-code").
actions
List of prompt actions. Use create_payment_action()
to build each entry.
card_type
Space-separated card types this prompt applies to (e.g., "visa mastercard").
error_type
Space-separated error types this prompt handles.
Returns
dict[str, Any] — prompt dictionary to pass in the prompts list of pay().