Package com.twilio.twiml.voice
Class Pay
- java.lang.Object
-
- com.twilio.twiml.TwiML
-
- com.twilio.twiml.voice.Pay
-
public class Pay extends TwiML
TwiML wrapper for<Pay>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPay.BankAccountTypestatic classPay.BuilderCreate a new<Pay>elementstatic classPay.Inputstatic classPay.Languagestatic classPay.PaymentMethodstatic classPay.StatusCallbackMethodstatic classPay.TokenTypestatic classPay.ValidCardTypes
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URIgetAction()Action URLPay.BankAccountTypegetBankAccountType()Bank account type for ach transactions.StringgetChargeAmount()Amount to process.StringgetCurrency()Currency of the amount attributeStringgetDescription()Details regarding the paymentPay.InputgetInput()Input type Twilio should acceptPay.LanguagegetLanguage()Language to useIntegergetMaxAttempts()Maximum number of allowed retries when gathering inputIntegergetMinPostalCodeLength()Prompt for minimum postal code lengthStringgetPaymentConnector()Unique name for payment connectorPay.PaymentMethodgetPaymentMethod()Payment method to be used.StringgetPostalCode()Prompt for postal code and it should be true/false or default postal codeURIgetStatusCallback()Status callback URLPay.StatusCallbackMethodgetStatusCallbackMethod()Status callback methodIntegergetTimeout()Time to wait to gather inputPay.TokenTypegetTokenType()Type of tokenList<Pay.ValidCardTypes>getValidCardTypess()Comma separated accepted card typesBooleanisSecurityCode()Prompt for security code-
Methods inherited from class com.twilio.twiml.TwiML
equals, getChildren, getOptions, getTagName, hashCode, toUrl, toXml
-
-
-
-
Method Detail
-
getInput
public Pay.Input getInput()
Input type Twilio should accept- Returns:
- Input type Twilio should accept
-
getAction
public URI getAction()
Action URL- Returns:
- Action URL
-
getBankAccountType
public Pay.BankAccountType getBankAccountType()
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- Returns:
- 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
-
getStatusCallback
public URI getStatusCallback()
Status callback URL- Returns:
- Status callback URL
-
getStatusCallbackMethod
public Pay.StatusCallbackMethod getStatusCallbackMethod()
Status callback method- Returns:
- Status callback method
-
getTimeout
public Integer getTimeout()
Time to wait to gather input- Returns:
- Time to wait to gather input
-
getMaxAttempts
public Integer getMaxAttempts()
Maximum number of allowed retries when gathering input- Returns:
- Maximum number of allowed retries when gathering input
-
isSecurityCode
public Boolean isSecurityCode()
Prompt for security code- Returns:
- Prompt for security code
-
getPostalCode
public String getPostalCode()
Prompt for postal code and it should be true/false or default postal code- Returns:
- Prompt for postal code and it should be true/false or default postal code
-
getMinPostalCodeLength
public Integer getMinPostalCodeLength()
Prompt for minimum postal code length- Returns:
- Prompt for minimum postal code length
-
getPaymentConnector
public String getPaymentConnector()
Unique name for payment connector- Returns:
- Unique name for payment connector
-
getPaymentMethod
public Pay.PaymentMethod getPaymentMethod()
Payment method to be used. defaults to credit-card- Returns:
- Payment method to be used. defaults to credit-card
-
getTokenType
public Pay.TokenType getTokenType()
Type of token- Returns:
- Type of token
-
getChargeAmount
public String getChargeAmount()
Amount to process. If value is greater than 0 then make the payment else create a payment token- Returns:
- Amount to process. If value is greater than 0 then make the payment else create a payment token
-
getCurrency
public String getCurrency()
Currency of the amount attribute- Returns:
- Currency of the amount attribute
-
getDescription
public String getDescription()
Details regarding the payment- Returns:
- Details regarding the payment
-
getValidCardTypess
public List<Pay.ValidCardTypes> getValidCardTypess()
Comma separated accepted card types- Returns:
- Comma separated accepted card types
-
getLanguage
public Pay.Language getLanguage()
Language to use- Returns:
- Language to use
-
-