Class Settings
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.setups.entities.settings.Settings
-
public class Settings extends java.lang.ObjectPayment setup configuration settings
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSettings.SettingsBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Settings.SettingsBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetFailureUrl()<= 255 characters The URL to redirect the customer to, if the payment is unsuccessful.java.lang.StringgetSuccessUrl()<= 255 characters The URL to redirect the customer to, if the payment is successful.inthashCode()voidsetFailureUrl(java.lang.String failureUrl)<= 255 characters The URL to redirect the customer to, if the payment is unsuccessful.voidsetSuccessUrl(java.lang.String successUrl)<= 255 characters The URL to redirect the customer to, if the payment is successful.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Settings
public Settings()
-
Settings
public Settings(java.lang.String successUrl, java.lang.String failureUrl)Creates a newSettingsinstance.- 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
-
builder
public static Settings.SettingsBuilder builder()
-
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:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-