-
- 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 String
getCheckoutId()
Returns the checkout id. void
setCheckoutId(@NonNull() String checkoutId)
Sets the checkout id. String
getLocale()
Return a locale string value com.oppwa.mobile.connect.checkout.dialog.CheckoutActivity, or null if no locale has been assigned. CheckoutSettings
setLocale(@Nullable() String locale)
Sets a specific locale for com.oppwa.mobile.connect.checkout.dialog.CheckoutActivity. String
getKlarnaCountry()
Returns the country for Klarna payment method. CheckoutSettings
setKlarnaCountry(@Nullable() String klarnaCountry)
Sets the country for Klarna payment method. String
getAciInstantPayCountry()
Returns the country for ACI Instant Pay payment method. CheckoutSettings
setAciInstantPayCountry(@NonNull() String aciInstantPayCountry)
Sets the country for ACI Instant Pay payment method. String
getGooglePayPaymentDataRequestJson()
Returns the PaymentDataRequest in JSON format. CheckoutSettings
setGooglePayPaymentDataRequestJson(@Nullable() String googlePayPaymentDataRequestJson)
Sets the PaymentDataRequest in JSON format. String
getPaymentButtonBrand()
Returns the brand for payment button. CheckoutSettings
setPaymentButtonBrand(@Nullable() String paymentButtonBrand)
Sets the brand for payment button. String
getIdealBankAccountCountry()
Returns the country code of iDEAL bank account. CheckoutSettings
setIdealBankAccountCountry(@Nullable() String idealBankAccountCountry)
Sets the country code of iDEAL bank account. Connect.ProviderMode
getProviderMode()
Returns the Connect.ProviderMode. CheckoutSettings
setProviderMode(@NonNull() Connect.ProviderMode providerMode)
Sets the Connect.ProviderMode. Set<String>
getPaymentBrands()
Returns the supported payment brands. CheckoutSettings
setPaymentBrands(@Nullable() Set<String> paymentBrands)
Sets the supported payment methods. CheckoutStorePaymentDetailsMode
getStorePaymentDetailsMode()
Returns the mode for storing payment details of the upcoming transaction. CheckoutSettings
setStorePaymentDetailsMode(@NonNull() CheckoutStorePaymentDetailsMode storePaymentDetailsMode)
Sets the mode for storing payment details of the upcoming transaction. CheckoutSkipCVVMode
getSkipCVVMode()
Returns the CheckoutSkipCVVMode for showing CVV. CheckoutSettings
setSkipCVVMode(@NonNull() CheckoutSkipCVVMode skipCVVMode)
Sets the CheckoutSkipCVVMode for showing CVV. CheckoutCardBrandsDisplayMode
getCardBrandsDisplayMode()
Returns the mode for showing card brands on the payment method selection screen CheckoutCardBrandsDisplayMode. CheckoutSettings
setCardBrandsDisplayMode(@NonNull() CheckoutCardBrandsDisplayMode cardBrandsDisplayMode)
Sets the mode for showing card brands on the payment method selection screen CheckoutCardBrandsDisplayMode. CheckoutSecurityPolicyMode
getSecurityPolicyModeForTokens()
Returns security policy mode for tokens. CheckoutSettings
setSecurityPolicyModeForTokens(@Nullable() CheckoutSecurityPolicyMode securityPolicyModeForTokens)
Sets security policy mode for tokens. IPaymentFormListener
getPaymentFormListener()
Returns listener object which will receive payment form events. CheckoutSettings
setPaymentFormListener(@Nullable() IPaymentFormListener paymentFormListener)
Sets listener object which will receive payment form events. OnBeforeSubmitCallback
getOnBeforeSubmitCallback()
Returns callback which will receive PaymentDetails. CheckoutSettings
setOnBeforeSubmitCallback(@Nullable() OnBeforeSubmitCallback onBeforeSubmitCallback)
Sets callback which will receive PaymentDetails. Array<Integer>
getInstallmentOptions()
Returns an array of possible numbers of installments. CheckoutSettings
setInstallmentOptions(@NonNull() Array<Integer> installmentOptions)
Sets list of possible numbers of installments. CheckoutBrandDetectionType
getBrandDetectionType()
Returns the type of automatic card brand detection to be used. CheckoutSettings
setBrandDetectionType(@NonNull() CheckoutBrandDetectionType brandDetectionType)
Sets the type of automatic card brand detection CheckoutBrandDetectionType Default value is REGEX. CheckoutBrandDetectionAppearanceStyle
getBrandDetectionAppearanceStyle()
Returns the brand detection appearance style. CheckoutSettings
setBrandDetectionAppearanceStyle(@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. CheckoutSettings
setBrandDetectionPriority(@Nullable() List<String> brandDetectionPriority)
Sets the preferred order of the detected card brands to be shown under the card number text field. SamsungPayConfig
getSamsungPayConfig()
Returns the SamsungPay configuration. CheckoutSettings
setSamsungPayConfig(@Nullable() SamsungPayConfig samsungPayConfig)
Sets the SamsungPay configuration. Map<String, Integer>
getCustomLogos()
Returns custom logos to be applied at the checkout. BillingAddress
getBillingAddress()
Returns the billing address which holds the address of the customer. CheckoutSettings
setBillingAddress(@Nullable() BillingAddress billingAddress)
Sets the billing address which holds the address of the customer. ComponentName
getComponentName()
Returns the component name to handle intents from CheckoutActivity. CheckoutSettings
setComponentName(@Nullable() ComponentName componentName)
Sets the component name to handle intents from CheckoutActivity. ThreeDSConfig
getThreeDS2Config()
Returns the configuration object to be used during service initialization. CheckoutSettings
setThreeDS2Config(@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. CheckoutSettings
setWpwlOptions(@Nullable() Map<String, WpwlOptions> wpwlOptions)
Set WPWL configuration information for specified brand. UiComponentsConfig
getUiComponentsConfig()
Returns the UI Components configuration. CheckoutSettings
setUiComponentsConfig(@Nullable() UiComponentsConfig uiComponentsConfig)
Sets the UI Components configuration. MbWayConfig
getMbWayConfig()
Returns the configuration for MBWAY payment method. CheckoutSettings
setMbWayConfig(@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. CheckoutSettings
setGooglePaySubmit(@NonNull() EnumSet<GooglePaySubmitType> googlePaySubmit)
Sets values GooglePaySubmitType details submitted with payment request if information available in Google Pay payment response. AfterpayPacificConfig
getAfterpayPacificConfig()
Returns the configuration for AFTERPAY_PACIFIC payment method if it is set. CheckoutSettings
setAfterpayPacificConfig(@Nullable() AfterpayPacificConfig afterpayPacificConfig)
Sets the configuration for AFTERPAY_PACIFIC payment method. CheckoutPaymentBrandConfig
getBrandConfig()
Returns the configuration for brands, if it is set. CheckoutSettings
setBrandConfig(@Nullable() CheckoutPaymentBrandConfig config)
Sets the configuration for all the payment brands. int
getThemeResId()
Return the theme resource id for com.oppwa.mobile.connect.checkout.dialog.CheckoutActivity, or 0 if no resource id has been assigned. 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
.double
getKlarnaInvoiceFee()
Returns the fee for Klarna Invoice payment method. CheckoutSettings
setKlarnaInvoiceFee(double klarnaInvoiceFee)
Sets the fee for Klarna Invoice payment method. double
getKlarnaInstallmentsFee()
Returns the fee for Klarna Installments payment method. CheckoutSettings
setKlarnaInstallmentsFee(double klarnaInstallmentsFee)
Sets the fee for Klarna Installments payment method. boolean
isBackButtonAvailable()
Returns false
if back button must be disabled for the payment button's payment brand,true
otherwise.boolean
isWindowSecurityEnabled()
If true
treat the content of the window as secure, preventing it from appearing in screenshots or from being viewed on non-secure displaysfalse
otherwise.boolean
isSTCPayQrCodeRequired()
If true
STC pay payment method will show QR code optionfalse
otherwise.boolean
isShowOtpEnabled()
Returns the boolean indicates if true
Blik OTP will be displayed on Blik payment UI.boolean
isCardScanningEnabled()
Indicates if card scanning feature (NFC/Camera) is enabled. boolean
isCardHolderVisible()
If true
holder name field is visible on the card payment formfalse
otherwise.boolean
isInstallmentEnabled()
Returns true
if payments by installments are enabled, otherwisefalse
.boolean
isTotalAmountRequired()
Returns true
if total amount should be displayed in the checkout form;false
otherwise.boolean
isIBANRequired()
If true
Giropay payment method will show IBAN fieldfalse
otherwise.boolean
isPaymentBrandsOrderUsedForTokens()
Indicates if payment brands order is used for tokens on payment method selection screen. boolean
isShowBirthDate()
If true
Ratepay payment method will show Date of birth input filedfalse
otherwise.boolean
isCardExpiryDateValidationDisabled()
Indicates if card expiry date validation is disabled. CheckoutSettings
setTotalAmountRequired(boolean totalAmountRequired)
If true
total amount will be shown on the payment method selection screen and in the 'Pay' buttons,false
otherwise.CheckoutSettings
setIBANRequired(boolean ibanRequired)
If true
Giropay payment method will show IBAN fieldfalse
otherwise.CheckoutSettings
setCardHolderVisible(boolean cardHolderVisible)
Set true
to show holder name field on the card payment formfalse
to hide the field.CheckoutSecurityPolicyMode
getSecurityPolicyModeForBrand(@NonNull() String paymentBrand)
Returns security policy mode for specific payment brand. CheckoutSettings
setSecurityPolicyModeForBrand(@NonNull() String paymentBrand, @NonNull() CheckoutSecurityPolicyMode securityPolicyMode)
Sets security policy mode for specific payment brand. CheckoutSettings
setWindowSecurityEnabled(boolean windowSecurityEnabled)
If true
treat the content of the window as secure, preventing it from appearing in screenshots or from being viewed on non-secure displaysfalse
otherwise.CheckoutSettings
setInstallmentEnabled(boolean installmentEnabled)
Set true
to display dropdown with getInstallmentOptions in the card payment form.CheckoutSettings
setBackButtonAvailable(boolean backButtonAvailable)
Sets false
to disable back button for payment button's payment brand, otherwisetrue
.CheckoutSettings
setShowBirthDate(boolean showBirthDate)
If true
Ratepay payment method will show Date of birth input filedfalse
otherwise.CheckoutSettings
setCardScanningEnabled(boolean cardScanningEnabled)
Enables or disables the card scanning feature. CheckoutSettings
setCustomLogo(@NonNull() String paymentBrand, int resourceId)
Sets custom logo to be presented at the checkout for the specified payment brand. CheckoutSettings
setSTCPayQrCodeRequired(boolean stcPayQrCodeRequired)
If true
STC pay payment method will show QR code optionfalse
otherwise.CheckoutSettings
setPaymentBrandsOrderUsedForTokens(boolean isPaymentBrandsOrderUsedForTokens)
Set if payment brands order should be used for tokens on payment method selection screen. CheckoutSettings
setCardExpiryDateValidationDisabled(boolean cardExpiryDateValidationDisabled)
Set card expiry date validation, if true
card expiry validation will be disabled,false
otherwise.CheckoutSettings
setShowOtpEnabled(boolean showOtpEnabled)
Sets the boolean indicates if true
display Blik OTP will be displayed on Blik payment UI.int
describeContents()
The part of Parcelable implementation. void
writeToParcel(Parcel dest, int flags)
The part of Parcelable implementation. String
toString()
boolean
equals(@Nullable() Object o)
int
hashCode()
-
-
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
false
if back button must be disabled for the payment button's payment brand,true
otherwise.
-
isWindowSecurityEnabled
boolean isWindowSecurityEnabled()
If
true
treat the content of the window as secure, preventing it from appearing in screenshots or from being viewed on non-secure displaysfalse
otherwise.
-
isSTCPayQrCodeRequired
boolean isSTCPayQrCodeRequired()
If
true
STC pay payment method will show QR code optionfalse
otherwise.
-
isShowOtpEnabled
boolean isShowOtpEnabled()
Returns the boolean indicates if
true
Blik 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
true
holder name field is visible on the card payment formfalse
otherwise.
-
isInstallmentEnabled
boolean isInstallmentEnabled()
Returns
true
if payments by installments are enabled, otherwisefalse
.
-
isTotalAmountRequired
boolean isTotalAmountRequired()
Returns
true
if total amount should be displayed in the checkout form;false
otherwise.
-
isIBANRequired
boolean isIBANRequired()
If
true
Giropay payment method will show IBAN fieldfalse
otherwise.
-
isPaymentBrandsOrderUsedForTokens
boolean isPaymentBrandsOrderUsedForTokens()
Indicates if payment brands order is used for tokens on payment method selection screen.
-
isShowBirthDate
boolean isShowBirthDate()
If
true
Ratepay payment method will show Date of birth input filedfalse
otherwise.
-
isCardExpiryDateValidationDisabled
boolean isCardExpiryDateValidationDisabled()
Indicates if card expiry date validation is disabled.
-
setTotalAmountRequired
@NonNull() CheckoutSettings setTotalAmountRequired(boolean totalAmountRequired)
If
true
total amount will be shown on the payment method selection screen and in the 'Pay' buttons,false
otherwise.- Parameters:
totalAmountRequired
- Thetrue
total amount should be displayed in the checkout form.
-
setIBANRequired
@NonNull() CheckoutSettings setIBANRequired(boolean ibanRequired)
If
true
Giropay payment method will show IBAN fieldfalse
otherwise.- Parameters:
ibanRequired
- Iftrue
Giropay payment method will show IBAN field.
-
setCardHolderVisible
@NonNull() CheckoutSettings setCardHolderVisible(boolean cardHolderVisible)
Set
true
to show holder name field on the card payment formfalse
to hide the field.- Parameters:
cardHolderVisible
- Iftrue
holder 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
true
treat the content of the window as secure, preventing it from appearing in screenshots or from being viewed on non-secure displaysfalse
otherwise. Make sure you usefalse
only for testing purposes. It must betrue
for production.- Parameters:
windowSecurityEnabled
- Iftrue
treat 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
true
to display dropdown with getInstallmentOptions in the card payment form.- Parameters:
installmentEnabled
- Thetrue
to display dropdown with getInstallmentOptions in the card payment form.
-
setBackButtonAvailable
@NonNull() CheckoutSettings setBackButtonAvailable(boolean backButtonAvailable)
Sets
false
to disable back button for payment button's payment brand, otherwisetrue
.- Parameters:
backButtonAvailable
- Thefalse
to disable back button for payment button's payment brand, otherwisetrue
.
-
setShowBirthDate
@NonNull() CheckoutSettings setShowBirthDate(boolean showBirthDate)
If
true
Ratepay payment method will show Date of birth input filedfalse
otherwise.- Parameters:
showBirthDate
- Iftrue
Ratepay payment method will show date of birth input filedfalse
otherwise.
-
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
- Thetrue
if 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
true
STC pay payment method will show QR code optionfalse
otherwise.- Parameters:
stcPayQrCodeRequired
- Iftrue
STC pay payment method will show QR code optionfalse
otherwise
-
setPaymentBrandsOrderUsedForTokens
@NonNull() CheckoutSettings setPaymentBrandsOrderUsedForTokens(boolean isPaymentBrandsOrderUsedForTokens)
Set if payment brands order should be used for tokens on payment method selection screen.
- Parameters:
isPaymentBrandsOrderUsedForTokens
- Thetrue
if payment brands order is used, otherwisefalse
.
-
setCardExpiryDateValidationDisabled
@NonNull() CheckoutSettings setCardExpiryDateValidationDisabled(boolean cardExpiryDateValidationDisabled)
Set card expiry date validation, if
true
card expiry validation will be disabled,false
otherwise.- Parameters:
cardExpiryDateValidationDisabled
- Enable/disable card expiry date validation.
-
setShowOtpEnabled
@NonNull() CheckoutSettings setShowOtpEnabled(boolean showOtpEnabled)
Sets the boolean indicates if
true
display Blik OTP will be displayed on Blik payment UI. Otherwise payment is processed without Blik code as asynchronous transaction.- Parameters:
showOtpEnabled
- Iftrue
display 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()
-
-
-
-