Class SessionParams
-
- All Implemented Interfaces:
@RestrictTo(value = {RestrictTo.Scope.LIBRARY_GROUP}) public final class SessionParams
Object that holds values set during sessions setup call. SessionParams values by default should have higher priority than values set in client side configurations. Otherwise it can cause server error, since specific configuration is not enabled, but it is being used.
Only for some specific cases, if they do not cause server error, client side configurations can have higher priority than SessionParams values.
-
-
Field Summary
Fields Modifier and Type Field Description private final Environmentenvironmentprivate final StringclientKeyprivate final BooleanenableStoreDetailsprivate final SessionInstallmentConfigurationinstallmentConfigurationprivate final BooleanshowRemovePaymentMethodButtonprivate final Amountamountprivate final StringreturnUrlprivate final LocaleshopperLocale
-
Constructor Summary
Constructors Constructor Description SessionParams(Environment environment, String clientKey, Boolean enableStoreDetails, SessionInstallmentConfiguration installmentConfiguration, Boolean showRemovePaymentMethodButton, Amount amount, String returnUrl, Locale shopperLocale)
-
Method Summary
Modifier and Type Method Description final EnvironmentgetEnvironment()final StringgetClientKey()final BooleangetEnableStoreDetails()final SessionInstallmentConfigurationgetInstallmentConfiguration()final BooleangetShowRemovePaymentMethodButton()final AmountgetAmount()final StringgetReturnUrl()final LocalegetShopperLocale()-
-
Method Detail
-
getEnvironment
final Environment getEnvironment()
-
getClientKey
final String getClientKey()
-
getEnableStoreDetails
final Boolean getEnableStoreDetails()
-
getInstallmentConfiguration
final SessionInstallmentConfiguration getInstallmentConfiguration()
-
getShowRemovePaymentMethodButton
final Boolean getShowRemovePaymentMethodButton()
-
getReturnUrl
final String getReturnUrl()
-
getShopperLocale
final Locale getShopperLocale()
-
-
-
-