Class Settings


  • public class Settings
    extends java.lang.Object
    Payment setup configuration settings
    • Constructor Summary

      Constructors 
      Constructor Description
      Settings()  
      Settings​(java.lang.String successUrl, java.lang.String failureUrl)
      Creates a new Settings instance.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Settings.SettingsBuilder builder()  
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.lang.String getFailureUrl()
      <= 255 characters The URL to redirect the customer to, if the payment is unsuccessful.
      java.lang.String getSuccessUrl()
      <= 255 characters The URL to redirect the customer to, if the payment is successful.
      int hashCode()  
      void setFailureUrl​(java.lang.String failureUrl)
      <= 255 characters The URL to redirect the customer to, if the payment is unsuccessful.
      void setSuccessUrl​(java.lang.String successUrl)
      <= 255 characters The URL to redirect the customer to, if the payment is successful.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Settings

        public Settings()
      • Settings

        public Settings​(java.lang.String successUrl,
                        java.lang.String failureUrl)
        Creates a new Settings instance.
        Parameters:
        successUrl - <= 255 characters The URL to redirect the customer to, if the payment is successful. For payment methods with a redirect, this value overrides the default success redirect URL configured on your account.
        failureUrl - <= 255 characters The URL to redirect the customer to, if the payment is unsuccessful. For payment methods with a redirect, this value overrides the default failure redirect URL configured on your account.
    • Method Detail

      • getSuccessUrl

        public java.lang.String getSuccessUrl()
        <= 255 characters The URL to redirect the customer to, if the payment is successful. For payment methods with a redirect, this value overrides the default success redirect URL configured on your account.
      • getFailureUrl

        public java.lang.String getFailureUrl()
        <= 255 characters The URL to redirect the customer to, if the payment is unsuccessful. For payment methods with a redirect, this value overrides the default failure redirect URL configured on your account.
      • setSuccessUrl

        public void setSuccessUrl​(java.lang.String successUrl)
        <= 255 characters The URL to redirect the customer to, if the payment is successful. For payment methods with a redirect, this value overrides the default success redirect URL configured on your account.
      • setFailureUrl

        public void setFailureUrl​(java.lang.String failureUrl)
        <= 255 characters The URL to redirect the customer to, if the payment is unsuccessful. For payment methods with a redirect, this value overrides the default failure redirect URL configured on your account.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object