class Twilio::TwiML::Pay
<Pay> Twiml Verb
Public Class Methods
new(**keyword_args) { |self| ... }
click to toggle source
Calls superclass method
Twilio::TwiML::TwiML::new
# File lib/twilio-ruby/twiml/voice_response.rb 738 def initialize(**keyword_args) 739 super(**keyword_args) 740 @name = 'Pay' 741 742 yield(self) if block_given? 743 end
Public Instance Methods
parameter(name: nil, value: nil, **keyword_args)
click to toggle source
Create a new <Parameter> element
- name
-
The name of the custom parameter
- value
-
The value of the custom parameter
- keyword_args
-
additional attributes
# File lib/twilio-ruby/twiml/voice_response.rb 764 def parameter(name: nil, value: nil, **keyword_args) 765 append(Parameter.new(name: name, value: value, **keyword_args)) 766 end
prompt(for_: nil, error_type: nil, card_type: nil, attempt: nil, **keyword_args) { |prompt| ... }
click to toggle source
Create a new <Prompt> element
- for_
-
Name of the payment source data element
- error_type
-
Type of error
- card_type
-
Type of the credit card
- attempt
-
Current attempt count
- keyword_args
-
additional attributes
# File lib/twilio-ruby/twiml/voice_response.rb 752 def prompt(for_: nil, error_type: nil, card_type: nil, attempt: nil, **keyword_args) 753 prompt = Prompt.new(for_: for_, error_type: error_type, card_type: card_type, attempt: attempt, **keyword_args) 754 755 yield(prompt) if block_given? 756 append(prompt) 757 end