-
- All Implemented Interfaces:
-
android.os.Parcelable
public class CheckoutSettings implements Parcelable
Represents the checkout settings, providing access to the checkout id, payment headerTitle, payment brands and more.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CheckoutSettings(String checkoutId, Set<String> paymentBrands, Connect.ProviderMode providerMode)Constructs a new checkout settings with the checkout id and payment brands.
-
Method Summary
Modifier and Type Method Description StringgetCheckoutId()Returns the checkout id. voidsetCheckoutId(@NonNull() String checkoutId)Sets the checkout id. StringgetLocale()Return a locale string value com.oppwa.mobile.connect.checkout.dialog.CheckoutActivity, or null if no locale has been assigned. CheckoutSettingssetLocale(@Nullable() String locale)Sets a specific locale for com.oppwa.mobile.connect.checkout.dialog.CheckoutActivity. StringgetKlarnaCountry()Returns the country for Klarna payment method. CheckoutSettingssetKlarnaCountry(@Nullable() String klarnaCountry)Sets the country for Klarna payment method. StringgetAciInstantPayCountry()Returns the country for ACI Instant Pay payment method. CheckoutSettingssetAciInstantPayCountry(@NonNull() String aciInstantPayCountry)Sets the country for ACI Instant Pay payment method. StringgetGooglePayPaymentDataRequestJson()Returns the PaymentDataRequest in JSON format. CheckoutSettingssetGooglePayPaymentDataRequestJson(@Nullable() String googlePayPaymentDataRequestJson)Sets the PaymentDataRequest in JSON format. StringgetPaymentButtonBrand()Returns the brand for payment button. CheckoutSettingssetPaymentButtonBrand(@Nullable() String paymentButtonBrand)Sets the brand for payment button. StringgetIdealBankAccountCountry()Returns the country code of iDEAL bank account. CheckoutSettingssetIdealBankAccountCountry(@Nullable() String idealBankAccountCountry)Sets the country code of iDEAL bank account. Connect.ProviderModegetProviderMode()Returns the Connect.ProviderMode. CheckoutSettingssetProviderMode(@NonNull() Connect.ProviderMode providerMode)Sets the Connect.ProviderMode. Set<String>getPaymentBrands()Returns the supported payment brands. CheckoutSettingssetPaymentBrands(@Nullable() Set<String> paymentBrands)Sets the supported payment methods. CheckoutStorePaymentDetailsModegetStorePaymentDetailsMode()Returns the mode for storing payment details of the upcoming transaction. CheckoutSettingssetStorePaymentDetailsMode(@NonNull() CheckoutStorePaymentDetailsMode storePaymentDetailsMode)Sets the mode for storing payment details of the upcoming transaction. CheckoutSkipCVVModegetSkipCVVMode()Returns the CheckoutSkipCVVMode for showing CVV. CheckoutSettingssetSkipCVVMode(@NonNull() CheckoutSkipCVVMode skipCVVMode)Sets the CheckoutSkipCVVMode for showing CVV. CheckoutCardBrandsDisplayModegetCardBrandsDisplayMode()Returns the mode for showing card brands on the payment method selection screen CheckoutCardBrandsDisplayMode. CheckoutSettingssetCardBrandsDisplayMode(@NonNull() CheckoutCardBrandsDisplayMode cardBrandsDisplayMode)Sets the mode for showing card brands on the payment method selection screen CheckoutCardBrandsDisplayMode. CheckoutSecurityPolicyModegetSecurityPolicyModeForTokens()Returns security policy mode for tokens. CheckoutSettingssetSecurityPolicyModeForTokens(@Nullable() CheckoutSecurityPolicyMode securityPolicyModeForTokens)Sets security policy mode for tokens. IPaymentFormListenergetPaymentFormListener()Returns listener object which will receive payment form events. CheckoutSettingssetPaymentFormListener(@Nullable() IPaymentFormListener paymentFormListener)Sets listener object which will receive payment form events. OnBeforeSubmitCallbackgetOnBeforeSubmitCallback()Returns callback which will receive PaymentDetails. CheckoutSettingssetOnBeforeSubmitCallback(@Nullable() OnBeforeSubmitCallback onBeforeSubmitCallback)Sets callback which will receive PaymentDetails. Array<Integer>getInstallmentOptions()Returns an array of possible numbers of installments. CheckoutSettingssetInstallmentOptions(@NonNull() Array<Integer> installmentOptions)Sets list of possible numbers of installments. CheckoutBrandDetectionTypegetBrandDetectionType()Returns the type of automatic card brand detection to be used. CheckoutSettingssetBrandDetectionType(@NonNull() CheckoutBrandDetectionType brandDetectionType)Sets the type of automatic card brand detection CheckoutBrandDetectionType Default value is REGEX. CheckoutBrandDetectionAppearanceStylegetBrandDetectionAppearanceStyle()Returns the brand detection appearance style. CheckoutSettingssetBrandDetectionAppearanceStyle(@NonNull() CheckoutBrandDetectionAppearanceStyle brandDetectionAppearanceStyle)Sets the brand detection appearance style CheckoutBrandDetectionAppearanceStyle Default value is ACTIVE. List<String>getBrandDetectionPriority()Returns the preferred order of the detected card brands to be shown under the card number text field. CheckoutSettingssetBrandDetectionPriority(@Nullable() List<String> brandDetectionPriority)Sets the preferred order of the detected card brands to be shown under the card number text field. SamsungPayConfiggetSamsungPayConfig()Returns the SamsungPay configuration. CheckoutSettingssetSamsungPayConfig(@Nullable() SamsungPayConfig samsungPayConfig)Sets the SamsungPay configuration. Map<String, Integer>getCustomLogos()Returns custom logos to be applied at the checkout. BillingAddressgetBillingAddress()Returns the billing address which holds the address of the customer. CheckoutSettingssetBillingAddress(@Nullable() BillingAddress billingAddress)Sets the billing address which holds the address of the customer. ComponentNamegetComponentName()Returns the component name to handle intents from CheckoutActivity. CheckoutSettingssetComponentName(@Nullable() ComponentName componentName)Sets the component name to handle intents from CheckoutActivity. ThreeDSConfiggetThreeDS2Config()Returns the configuration object to be used during service initialization. CheckoutSettingssetThreeDS2Config(@Nullable() ThreeDSConfig threeDS2Config)Sets configuration information that shall be used during initialization. Map<String, WpwlOptions>getWpwlOptions()Get payment brand and its WPWL configuration for checkout. CheckoutSettingssetWpwlOptions(@Nullable() Map<String, WpwlOptions> wpwlOptions)Set WPWL configuration information for specified brand. UiComponentsConfiggetUiComponentsConfig()Returns the UI Components configuration. CheckoutSettingssetUiComponentsConfig(@Nullable() UiComponentsConfig uiComponentsConfig)Sets the UI Components configuration. MbWayConfiggetMbWayConfig()Returns the configuration for MBWAY payment method. CheckoutSettingssetMbWayConfig(@Nullable() MbWayConfig mbWayConfig)Sets the configuration for MBWAY payment method. EnumSet<GooglePaySubmitType>getGooglePaySubmit()Get GooglePaySubmitType details submitted with payment request if information available in Google Pay payment response. CheckoutSettingssetGooglePaySubmit(@NonNull() EnumSet<GooglePaySubmitType> googlePaySubmit)Sets values GooglePaySubmitType details submitted with payment request if information available in Google Pay payment response. AfterpayPacificConfiggetAfterpayPacificConfig()Returns the configuration for AFTERPAY_PACIFIC payment method if it is set. CheckoutSettingssetAfterpayPacificConfig(@Nullable() AfterpayPacificConfig afterpayPacificConfig)Sets the configuration for AFTERPAY_PACIFIC payment method. CheckoutPaymentBrandConfiggetBrandConfig()Returns the configuration for brands, if it is set. CheckoutSettingssetBrandConfig(@Nullable() CheckoutPaymentBrandConfig config)Sets the configuration for all the payment brands. intgetThemeResId()Return the theme resource id for com.oppwa.mobile.connect.checkout.dialog.CheckoutActivity, or 0 if no resource id has been assigned. CheckoutSettingssetThemeResId(int themeResId)Sets a theme resource id for com.oppwa.mobile.connect.checkout.dialog.CheckoutActivity, you can also set theme in your AndroidManifest.xml.doublegetKlarnaInvoiceFee()Returns the fee for Klarna Invoice payment method. CheckoutSettingssetKlarnaInvoiceFee(double klarnaInvoiceFee)Sets the fee for Klarna Invoice payment method. doublegetKlarnaInstallmentsFee()Returns the fee for Klarna Installments payment method. CheckoutSettingssetKlarnaInstallmentsFee(double klarnaInstallmentsFee)Sets the fee for Klarna Installments payment method. booleanisBackButtonAvailable()Returns falseif back button must be disabled for the payment button's payment brand,trueotherwise.booleanisWindowSecurityEnabled()If truetreat the content of the window as secure, preventing it from appearing in screenshots or from being viewed on non-secure displaysfalseotherwise.booleanisSTCPayQrCodeRequired()If trueSTC pay payment method will show QR code optionfalseotherwise.booleanisShowOtpEnabled()Returns the boolean indicates if trueBlik OTP will be displayed on Blik payment UI.booleanisCardScanningEnabled()Indicates if card scanning feature (NFC/Camera) is enabled. booleanisCardHolderVisible()If trueholder name field is visible on the card payment formfalseotherwise.booleanisInstallmentEnabled()Returns trueif payments by installments are enabled, otherwisefalse.booleanisTotalAmountRequired()Returns trueif total amount should be displayed in the checkout form;falseotherwise.booleanisIBANRequired()If trueGiropay payment method will show IBAN fieldfalseotherwise.booleanisPaymentBrandsOrderUsedForTokens()Indicates if payment brands order is used for tokens on payment method selection screen. booleanisShowBirthDate()If trueRatepay payment method will show Date of birth input filedfalseotherwise.booleanisCardExpiryDateValidationDisabled()Indicates if card expiry date validation is disabled. CheckoutSettingssetTotalAmountRequired(boolean totalAmountRequired)If truetotal amount will be shown on the payment method selection screen and in the 'Pay' buttons,falseotherwise.CheckoutSettingssetIBANRequired(boolean ibanRequired)If trueGiropay payment method will show IBAN fieldfalseotherwise.CheckoutSettingssetCardHolderVisible(boolean cardHolderVisible)Set trueto show holder name field on the card payment formfalseto hide the field.CheckoutSecurityPolicyModegetSecurityPolicyModeForBrand(@NonNull() String paymentBrand)Returns security policy mode for specific payment brand. CheckoutSettingssetSecurityPolicyModeForBrand(@NonNull() String paymentBrand, @NonNull() CheckoutSecurityPolicyMode securityPolicyMode)Sets security policy mode for specific payment brand. CheckoutSettingssetWindowSecurityEnabled(boolean windowSecurityEnabled)If truetreat the content of the window as secure, preventing it from appearing in screenshots or from being viewed on non-secure displaysfalseotherwise.CheckoutSettingssetInstallmentEnabled(boolean installmentEnabled)Set trueto display dropdown with getInstallmentOptions in the card payment form.CheckoutSettingssetBackButtonAvailable(boolean backButtonAvailable)Sets falseto disable back button for payment button's payment brand, otherwisetrue.CheckoutSettingssetShowBirthDate(boolean showBirthDate)If trueRatepay payment method will show Date of birth input filedfalseotherwise.CheckoutSettingssetCardScanningEnabled(boolean cardScanningEnabled)Enables or disables the card scanning feature. CheckoutSettingssetCustomLogo(@NonNull() String paymentBrand, int resourceId)Sets custom logo to be presented at the checkout for the specified payment brand. CheckoutSettingssetSTCPayQrCodeRequired(boolean stcPayQrCodeRequired)If trueSTC pay payment method will show QR code optionfalseotherwise.CheckoutSettingssetPaymentBrandsOrderUsedForTokens(boolean isPaymentBrandsOrderUsedForTokens)Set if payment brands order should be used for tokens on payment method selection screen. CheckoutSettingssetCardExpiryDateValidationDisabled(boolean cardExpiryDateValidationDisabled)Set card expiry date validation, if truecard expiry validation will be disabled,falseotherwise.CheckoutSettingssetShowOtpEnabled(boolean showOtpEnabled)Sets the boolean indicates if truedisplay Blik OTP will be displayed on Blik payment UI.intdescribeContents()The part of Parcelable implementation. voidwriteToParcel(Parcel dest, int flags)The part of Parcelable implementation. StringtoString()booleanequals(@Nullable() Object o)inthashCode()-
-
Constructor Detail
-
CheckoutSettings
CheckoutSettings(String checkoutId, Set<String> paymentBrands, Connect.ProviderMode providerMode)
Constructs a new checkout settings with the checkout id and payment brands.- Parameters:
checkoutId- The checkout id.paymentBrands- The payment brands.providerMode- The Connect.ProviderMode.
-
-
Method Detail
-
getCheckoutId
@NonNull() String getCheckoutId()
Returns the checkout id.
-
setCheckoutId
void setCheckoutId(@NonNull() String checkoutId)
Sets the checkout id.
- Parameters:
checkoutId- The checkout id.
-
getLocale
@Nullable() String getLocale()
Return a locale string value com.oppwa.mobile.connect.checkout.dialog.CheckoutActivity, or null if no locale has been assigned.
-
setLocale
@NonNull() CheckoutSettings setLocale(@Nullable() String locale)
Sets a specific locale for com.oppwa.mobile.connect.checkout.dialog.CheckoutActivity.
- Parameters:
locale- The locale string value.
-
getKlarnaCountry
@Nullable() String getKlarnaCountry()
Returns the country for Klarna payment method.
-
setKlarnaCountry
@NonNull() CheckoutSettings setKlarnaCountry(@Nullable() String klarnaCountry)
Sets the country for Klarna payment method. It should be one of these values DE, AT, NL, SE, NO, FI or DK. By default the country will be taken from the current locale, use this method to set the specific country for Klarna.
-
getAciInstantPayCountry
@NonNull() String getAciInstantPayCountry()
Returns the country for ACI Instant Pay payment method.
-
setAciInstantPayCountry
@NonNull() CheckoutSettings setAciInstantPayCountry(@NonNull() String aciInstantPayCountry)
Sets the country for ACI Instant Pay payment method. It should be one of these values NL, DE, FR, BE, LV, EE, LT, ES, AT, IT, PT, GB, US. use this method to set the specific country for ACI Instant Pay.
-
getGooglePayPaymentDataRequestJson
@Nullable() String getGooglePayPaymentDataRequestJson()
Returns the PaymentDataRequest in JSON format.
-
setGooglePayPaymentDataRequestJson
@NonNull() CheckoutSettings setGooglePayPaymentDataRequestJson(@Nullable() String googlePayPaymentDataRequestJson)
Sets the PaymentDataRequest in JSON format. The PaymentDataRequestJsonBuilder should be used to build it.
- Parameters:
googlePayPaymentDataRequestJson- The PaymentDataRequest in JSON format.
-
getPaymentButtonBrand
@Nullable() String getPaymentButtonBrand()
Returns the brand for payment button.
-
setPaymentButtonBrand
@NonNull() CheckoutSettings setPaymentButtonBrand(@Nullable() String paymentButtonBrand)
Sets the brand for payment button. This method is used internally for drop-in button integration.
- Parameters:
paymentButtonBrand- The payment brand.
-
getIdealBankAccountCountry
@Nullable() String getIdealBankAccountCountry()
Returns the country code of iDEAL bank account.
-
setIdealBankAccountCountry
@NonNull() CheckoutSettings setIdealBankAccountCountry(@Nullable() String idealBankAccountCountry)
Sets the country code of iDEAL bank account. NOTE: If it is set, the iDEAL 2.0 will be used.
- Parameters:
idealBankAccountCountry- The bank account country code in the following format [a-zA-Z]{2} (ISO 3166-1).
-
getProviderMode
@NonNull() Connect.ProviderMode getProviderMode()
Returns the Connect.ProviderMode.
-
setProviderMode
@NonNull() CheckoutSettings setProviderMode(@NonNull() Connect.ProviderMode providerMode)
Sets the Connect.ProviderMode.
- Parameters:
providerMode- The Connect.ProviderMode.
-
getPaymentBrands
@Nullable() Set<String> getPaymentBrands()
Returns the supported payment brands.
-
setPaymentBrands
@NonNull() CheckoutSettings setPaymentBrands(@Nullable() Set<String> paymentBrands)
Sets the supported payment methods. The order in the array corresponds to the position in the list.
- Parameters:
paymentBrands- The array of supported payment brands.
-
getStorePaymentDetailsMode
@NonNull() CheckoutStorePaymentDetailsMode getStorePaymentDetailsMode()
Returns the mode for storing payment details of the upcoming transaction.
-
setStorePaymentDetailsMode
@NonNull() CheckoutSettings setStorePaymentDetailsMode(@NonNull() CheckoutStorePaymentDetailsMode storePaymentDetailsMode)
Sets the mode for storing payment details of the upcoming transaction. CheckoutStorePaymentDetailsMode Default value is NEVER.
- Parameters:
storePaymentDetailsMode- The CheckoutStorePaymentDetailsMode.
-
getSkipCVVMode
@NonNull() CheckoutSkipCVVMode getSkipCVVMode()
Returns the CheckoutSkipCVVMode for showing CVV.
-
setSkipCVVMode
@NonNull() CheckoutSettings setSkipCVVMode(@NonNull() CheckoutSkipCVVMode skipCVVMode)
Sets the CheckoutSkipCVVMode for showing CVV. Default value is NEVER.
- Parameters:
skipCVVMode- The CVV mode.
-
getCardBrandsDisplayMode
@NonNull() CheckoutCardBrandsDisplayMode getCardBrandsDisplayMode()
Returns the mode for showing card brands on the payment method selection screen CheckoutCardBrandsDisplayMode.
-
setCardBrandsDisplayMode
@NonNull() CheckoutSettings setCardBrandsDisplayMode(@NonNull() CheckoutCardBrandsDisplayMode cardBrandsDisplayMode)
Sets the mode for showing card brands on the payment method selection screen CheckoutCardBrandsDisplayMode. Default value is GROUPED.
- Parameters:
cardBrandsDisplayMode- The mode for displaying cards.
-
getSecurityPolicyModeForTokens
@Nullable() CheckoutSecurityPolicyMode getSecurityPolicyModeForTokens()
Returns security policy mode for tokens.
-
setSecurityPolicyModeForTokens
@NonNull() CheckoutSettings setSecurityPolicyModeForTokens(@Nullable() CheckoutSecurityPolicyMode securityPolicyModeForTokens)
Sets security policy mode for tokens.
- Parameters:
securityPolicyModeForTokens- The CheckoutSecurityPolicyMode.
-
getPaymentFormListener
@Nullable() IPaymentFormListener getPaymentFormListener()
Returns listener object which will receive payment form events.
-
setPaymentFormListener
@NonNull() CheckoutSettings setPaymentFormListener(@Nullable() IPaymentFormListener paymentFormListener)
Sets listener object which will receive payment form events.
- Parameters:
paymentFormListener- The listener object, should be parcelable.
-
getOnBeforeSubmitCallback
@Nullable() OnBeforeSubmitCallback getOnBeforeSubmitCallback()
Returns callback which will receive PaymentDetails.
-
setOnBeforeSubmitCallback
@NonNull() CheckoutSettings setOnBeforeSubmitCallback(@Nullable() OnBeforeSubmitCallback onBeforeSubmitCallback)
Sets callback which will receive PaymentDetails. Only this callback will be used if component name for broadcast receiver was set in setComponentName.
- Parameters:
onBeforeSubmitCallback- Before submit callback, should be parcelable.
-
getInstallmentOptions
@NonNull() Array<Integer> getInstallmentOptions()
Returns an array of possible numbers of installments.
-
setInstallmentOptions
@NonNull() CheckoutSettings setInstallmentOptions(@NonNull() Array<Integer> installmentOptions)
Sets list of possible numbers of installments.
- Parameters:
installmentOptions- The list of possible numbers of installments.
-
getBrandDetectionType
@NonNull() CheckoutBrandDetectionType getBrandDetectionType()
Returns the type of automatic card brand detection to be used.
-
setBrandDetectionType
@NonNull() CheckoutSettings setBrandDetectionType(@NonNull() CheckoutBrandDetectionType brandDetectionType)
Sets the type of automatic card brand detection CheckoutBrandDetectionType Default value is REGEX.
- Parameters:
brandDetectionType- The type of automatic card brand detection.
-
getBrandDetectionAppearanceStyle
@NonNull() CheckoutBrandDetectionAppearanceStyle getBrandDetectionAppearanceStyle()
Returns the brand detection appearance style.
-
setBrandDetectionAppearanceStyle
@NonNull() CheckoutSettings setBrandDetectionAppearanceStyle(@NonNull() CheckoutBrandDetectionAppearanceStyle brandDetectionAppearanceStyle)
Sets the brand detection appearance style CheckoutBrandDetectionAppearanceStyle Default value is ACTIVE.
- Parameters:
brandDetectionAppearanceStyle- The brand detection appearance style.
-
getBrandDetectionPriority
@Nullable() List<String> getBrandDetectionPriority()
Returns the preferred order of the detected card brands to be shown under the card number text field. By default order from paymentBrands is used.
-
setBrandDetectionPriority
@NonNull() CheckoutSettings setBrandDetectionPriority(@Nullable() List<String> brandDetectionPriority)
Sets the preferred order of the detected card brands to be shown under the card number text field.
- Parameters:
brandDetectionPriority- The list of the card brands.
-
getSamsungPayConfig
@Nullable() SamsungPayConfig getSamsungPayConfig()
Returns the SamsungPay configuration.
-
setSamsungPayConfig
@NonNull() CheckoutSettings setSamsungPayConfig(@Nullable() SamsungPayConfig samsungPayConfig)
Sets the SamsungPay configuration.
- Parameters:
samsungPayConfig- The SamsungPay configuration.
-
getCustomLogos
@NonNull() Map<String, Integer> getCustomLogos()
Returns custom logos to be applied at the checkout.
-
getBillingAddress
@Nullable() BillingAddress getBillingAddress()
Returns the billing address which holds the address of the customer.
-
setBillingAddress
@NonNull() CheckoutSettings setBillingAddress(@Nullable() BillingAddress billingAddress)
Sets the billing address which holds the address of the customer.
- Parameters:
billingAddress- The BillingAddress.
-
getComponentName
@Nullable() ComponentName getComponentName()
Returns the component name to handle intents from CheckoutActivity.
-
setComponentName
@NonNull() CheckoutSettings setComponentName(@Nullable() ComponentName componentName)
Sets the component name to handle intents from CheckoutActivity.
- Parameters:
componentName- The ComponentName defines a specific android.content.BroadcastReceiver to handle the intents from CheckoutActivity.
-
getThreeDS2Config
@Nullable() ThreeDSConfig getThreeDS2Config()
Returns the configuration object to be used during service initialization.
-
setThreeDS2Config
@NonNull() CheckoutSettings setThreeDS2Config(@Nullable() ThreeDSConfig threeDS2Config)
Sets configuration information that shall be used during initialization.
- Parameters:
threeDS2Config- The object containing configuration information to be applied during the initialization.
-
getWpwlOptions
@Nullable() Map<String, WpwlOptions> getWpwlOptions()
Get payment brand and its WPWL configuration for checkout.
-
setWpwlOptions
@NonNull() CheckoutSettings setWpwlOptions(@Nullable() Map<String, WpwlOptions> wpwlOptions)
Set WPWL configuration information for specified brand. Payment brand should be used as key and relevant WPWL configuration as value.
- Parameters:
wpwlOptions- The map containing payment brand as String and its WPWL configuration.
-
getUiComponentsConfig
@Nullable() UiComponentsConfig getUiComponentsConfig()
Returns the UI Components configuration.
-
setUiComponentsConfig
@NonNull() CheckoutSettings setUiComponentsConfig(@Nullable() UiComponentsConfig uiComponentsConfig)
Sets the UI Components configuration.
- Parameters:
uiComponentsConfig- The UI Components configuration.
-
getMbWayConfig
@Nullable() MbWayConfig getMbWayConfig()
Returns the configuration for MBWAY payment method.
-
setMbWayConfig
@NonNull() CheckoutSettings setMbWayConfig(@Nullable() MbWayConfig mbWayConfig)
Sets the configuration for MBWAY payment method.
- Parameters:
mbWayConfig- The MbWayConfig.
-
getGooglePaySubmit
@Nullable() EnumSet<GooglePaySubmitType> getGooglePaySubmit()
Get GooglePaySubmitType details submitted with payment request if information available in Google Pay payment response. Billing and Customer details are supported to be submitted with payment request.
-
setGooglePaySubmit
@NonNull() CheckoutSettings setGooglePaySubmit(@NonNull() EnumSet<GooglePaySubmitType> googlePaySubmit)
Sets values GooglePaySubmitType details submitted with payment request if information available in Google Pay payment response. Billing and Customer details are supported to be submitted with payment request.
- Parameters:
googlePaySubmit- The EnumSet containing values GooglePaySubmitType
-
getAfterpayPacificConfig
@Nullable() AfterpayPacificConfig getAfterpayPacificConfig()
Returns the configuration for AFTERPAY_PACIFIC payment method if it is set.
-
setAfterpayPacificConfig
@NonNull() CheckoutSettings setAfterpayPacificConfig(@Nullable() AfterpayPacificConfig afterpayPacificConfig)
Sets the configuration for AFTERPAY_PACIFIC payment method.
- Parameters:
afterpayPacificConfig- The AfterpayPacificConfig.
-
getBrandConfig
@Nullable() CheckoutPaymentBrandConfig getBrandConfig()
Returns the configuration for brands, if it is set.
-
setBrandConfig
@NonNull() CheckoutSettings setBrandConfig(@Nullable() CheckoutPaymentBrandConfig config)
Sets the configuration for all the payment brands.
- Parameters:
config- The CheckoutPaymentBrandConfig.
-
getThemeResId
int getThemeResId()
Return the theme resource id for com.oppwa.mobile.connect.checkout.dialog.CheckoutActivity, or 0 if no resource id has been assigned.
-
setThemeResId
@NonNull() CheckoutSettings setThemeResId(int themeResId)
Sets a theme resource id for com.oppwa.mobile.connect.checkout.dialog.CheckoutActivity, you can also set theme in your
AndroidManifest.xml.- Parameters:
themeResId- The theme resource id.
-
getKlarnaInvoiceFee
double getKlarnaInvoiceFee()
Returns the fee for Klarna Invoice payment method.
-
setKlarnaInvoiceFee
@NonNull() CheckoutSettings setKlarnaInvoiceFee(double klarnaInvoiceFee)
Sets the fee for Klarna Invoice payment method.
-
getKlarnaInstallmentsFee
double getKlarnaInstallmentsFee()
Returns the fee for Klarna Installments payment method.
-
setKlarnaInstallmentsFee
@NonNull() CheckoutSettings setKlarnaInstallmentsFee(double klarnaInstallmentsFee)
Sets the fee for Klarna Installments payment method.
-
isBackButtonAvailable
boolean isBackButtonAvailable()
Returns
falseif back button must be disabled for the payment button's payment brand,trueotherwise.
-
isWindowSecurityEnabled
boolean isWindowSecurityEnabled()
If
truetreat the content of the window as secure, preventing it from appearing in screenshots or from being viewed on non-secure displaysfalseotherwise.
-
isSTCPayQrCodeRequired
boolean isSTCPayQrCodeRequired()
If
trueSTC pay payment method will show QR code optionfalseotherwise.
-
isShowOtpEnabled
boolean isShowOtpEnabled()
Returns the boolean indicates if
trueBlik OTP will be displayed on Blik payment UI. Otherwise payment is processed without Blik code as asynchronous transaction.
-
isCardScanningEnabled
boolean isCardScanningEnabled()
Indicates if card scanning feature (NFC/Camera) is enabled.
-
isCardHolderVisible
boolean isCardHolderVisible()
If
trueholder name field is visible on the card payment formfalseotherwise.
-
isInstallmentEnabled
boolean isInstallmentEnabled()
Returns
trueif payments by installments are enabled, otherwisefalse.
-
isTotalAmountRequired
boolean isTotalAmountRequired()
Returns
trueif total amount should be displayed in the checkout form;falseotherwise.
-
isIBANRequired
boolean isIBANRequired()
If
trueGiropay payment method will show IBAN fieldfalseotherwise.
-
isPaymentBrandsOrderUsedForTokens
boolean isPaymentBrandsOrderUsedForTokens()
Indicates if payment brands order is used for tokens on payment method selection screen.
-
isShowBirthDate
boolean isShowBirthDate()
If
trueRatepay payment method will show Date of birth input filedfalseotherwise.
-
isCardExpiryDateValidationDisabled
boolean isCardExpiryDateValidationDisabled()
Indicates if card expiry date validation is disabled.
-
setTotalAmountRequired
@NonNull() CheckoutSettings setTotalAmountRequired(boolean totalAmountRequired)
If
truetotal amount will be shown on the payment method selection screen and in the 'Pay' buttons,falseotherwise.- Parameters:
totalAmountRequired- Thetruetotal amount should be displayed in the checkout form.
-
setIBANRequired
@NonNull() CheckoutSettings setIBANRequired(boolean ibanRequired)
If
trueGiropay payment method will show IBAN fieldfalseotherwise.- Parameters:
ibanRequired- IftrueGiropay payment method will show IBAN field.
-
setCardHolderVisible
@NonNull() CheckoutSettings setCardHolderVisible(boolean cardHolderVisible)
Set
trueto show holder name field on the card payment formfalseto hide the field.- Parameters:
cardHolderVisible- Iftrueholder name field is visible on the card payment form.
-
getSecurityPolicyModeForBrand
@Nullable() CheckoutSecurityPolicyMode getSecurityPolicyModeForBrand(@NonNull() String paymentBrand)
Returns security policy mode for specific payment brand.
- Parameters:
paymentBrand- The payment brand.
-
setSecurityPolicyModeForBrand
@NonNull() CheckoutSettings setSecurityPolicyModeForBrand(@NonNull() String paymentBrand, @NonNull() CheckoutSecurityPolicyMode securityPolicyMode)
Sets security policy mode for specific payment brand.
- Parameters:
paymentBrand- The payment brand.securityPolicyMode- The CheckoutSecurityPolicyMode.
-
setWindowSecurityEnabled
@NonNull() CheckoutSettings setWindowSecurityEnabled(boolean windowSecurityEnabled)
If
truetreat the content of the window as secure, preventing it from appearing in screenshots or from being viewed on non-secure displaysfalseotherwise. Make sure you usefalseonly for testing purposes. It must betruefor production.- Parameters:
windowSecurityEnabled- Iftruetreat the content of the window as secure, preventing it from appearing in screenshots or from being viewed on non-secure displays.
-
setInstallmentEnabled
@NonNull() CheckoutSettings setInstallmentEnabled(boolean installmentEnabled)
Set
trueto display dropdown with getInstallmentOptions in the card payment form.- Parameters:
installmentEnabled- Thetrueto display dropdown with getInstallmentOptions in the card payment form.
-
setBackButtonAvailable
@NonNull() CheckoutSettings setBackButtonAvailable(boolean backButtonAvailable)
Sets
falseto disable back button for payment button's payment brand, otherwisetrue.- Parameters:
backButtonAvailable- Thefalseto disable back button for payment button's payment brand, otherwisetrue.
-
setShowBirthDate
@NonNull() CheckoutSettings setShowBirthDate(boolean showBirthDate)
If
trueRatepay payment method will show Date of birth input filedfalseotherwise.- Parameters:
showBirthDate- IftrueRatepay payment method will show date of birth input filedfalseotherwise.
-
setCardScanningEnabled
@NonNull() CheckoutSettings setCardScanningEnabled(boolean cardScanningEnabled)
Enables or disables the card scanning feature. This feature has two options: NFC and Camera. If it's enabled and device has NFC module, then NFC card reader will be used. If it's enabled and device has no NFC module, then Card IO will be used if it's available.
- Parameters:
cardScanningEnabled- Thetrueif card scanning feature enabled, otherwisefalse.
-
setCustomLogo
@NonNull() CheckoutSettings setCustomLogo(@NonNull() String paymentBrand, int resourceId)
Sets custom logo to be presented at the checkout for the specified payment brand.
- Parameters:
paymentBrand- The payment brand to assign custom logo for.resourceId- The resource id of the logo image, e.g.
-
setSTCPayQrCodeRequired
@NonNull() CheckoutSettings setSTCPayQrCodeRequired(boolean stcPayQrCodeRequired)
If
trueSTC pay payment method will show QR code optionfalseotherwise.- Parameters:
stcPayQrCodeRequired- IftrueSTC pay payment method will show QR code optionfalseotherwise
-
setPaymentBrandsOrderUsedForTokens
@NonNull() CheckoutSettings setPaymentBrandsOrderUsedForTokens(boolean isPaymentBrandsOrderUsedForTokens)
Set if payment brands order should be used for tokens on payment method selection screen.
- Parameters:
isPaymentBrandsOrderUsedForTokens- Thetrueif payment brands order is used, otherwisefalse.
-
setCardExpiryDateValidationDisabled
@NonNull() CheckoutSettings setCardExpiryDateValidationDisabled(boolean cardExpiryDateValidationDisabled)
Set card expiry date validation, if
truecard expiry validation will be disabled,falseotherwise.- Parameters:
cardExpiryDateValidationDisabled- Enable/disable card expiry date validation.
-
setShowOtpEnabled
@NonNull() CheckoutSettings setShowOtpEnabled(boolean showOtpEnabled)
Sets the boolean indicates if
truedisplay Blik OTP will be displayed on Blik payment UI. Otherwise payment is processed without Blik code as asynchronous transaction.- Parameters:
showOtpEnabled- Iftruedisplay Blik code will be displayed on Blik payment UI.
-
describeContents
int describeContents()
The part of Parcelable implementation.
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
The part of Parcelable implementation.
-
hashCode
int hashCode()
-
-
-
-