NAME
Twilio::TwiML::Voice::Pay - The Pay element of TwiML
SYNOPSIS
my $element = Twilio::TwiML::Voice::Pay->new(\%attributes);
DESCRIPTION
See Twilio::TwiML::TwiML for the methods every element has.
METHODS
new
my $element = Twilio::TwiML::Voice::Pay->new(\%attributes);
attribute_table
Used by Twilio::TwiML::TwiML.
parameter
my $child = $element->parameter(\%attributes);
Add Parameter child. Returns a Twilio::TwiML::Voice::Parameter.
prompt
my $child = $element->prompt(\%attributes);
Add Prompt child. Returns a Twilio::TwiML::Voice::Prompt.
ATTRIBUTES
Each name works in \%attributes, and as a set_ method that returns the element.
action-
Action URL
bank_account_type-
Bank account type for ach transactions. If set, payment method attribute must be provided and value should be set to ach-debit. defaults to consumer-checking
charge_amount-
Amount to process. If value is greater than 0 then make the payment else create a payment token
currency-
Currency of the amount attribute
description-
Details regarding the payment
input-
Input type Twilio should accept
language-
Language to use
max_attempts-
Maximum number of allowed retries when gathering input
min_postal_code_length-
Prompt for minimum postal code length
payment_connector-
Unique name for payment connector
payment_method-
Payment method to be used. defaults to credit-card
postal_code-
Prompt for postal code and it should be true/false or default postal code
security_code-
Prompt for security code True or false.
status_callback-
Status callback URL
status_callback_method-
Status callback method
timeout-
Time to wait to gather input
token_type-
Type of token
valid_card_types-
Comma separated accepted card types An array reference.
set_action
set_bank_account_type
set_charge_amount
set_currency
set_description
set_input
set_language
set_max_attempts
set_min_postal_code_length
set_payment_connector
set_payment_method
set_postal_code
set_security_code
set_status_callback
set_status_callback_method
set_timeout
set_token_type
set_valid_card_types
Set the attribute of the same name.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.