Class Pay


  • public class Pay
    extends TwiML
    TwiML wrapper for <Pay>
    • 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