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 class
Pay.BankAccountType
static class
Pay.Builder
Create a new<Pay>
elementstatic class
Pay.Input
static class
Pay.Language
static class
Pay.PaymentMethod
static class
Pay.StatusCallbackMethod
static class
Pay.TokenType
static class
Pay.ValidCardTypes
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URI
getAction()
Action URLPay.BankAccountType
getBankAccountType()
Bank account type for ach transactions.String
getChargeAmount()
Amount to process.String
getCurrency()
Currency of the amount attributeString
getDescription()
Details regarding the paymentPay.Input
getInput()
Input type Twilio should acceptPay.Language
getLanguage()
Language to useInteger
getMaxAttempts()
Maximum number of allowed retries when gathering inputInteger
getMinPostalCodeLength()
Prompt for minimum postal code lengthString
getPaymentConnector()
Unique name for payment connectorPay.PaymentMethod
getPaymentMethod()
Payment method to be used.String
getPostalCode()
Prompt for postal code and it should be true/false or default postal codeURI
getStatusCallback()
Status callback URLPay.StatusCallbackMethod
getStatusCallbackMethod()
Status callback methodInteger
getTimeout()
Time to wait to gather inputPay.TokenType
getTokenType()
Type of tokenList<Pay.ValidCardTypes>
getValidCardTypess()
Comma separated accepted card typesBoolean
isSecurityCode()
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
-
-