1234567
data class PrimerSettings @JvmOverloads constructor( var paymentHandling: PrimerPaymentHandling = PrimerPaymentHandling.AUTO, var locale: Locale = Locale.getDefault(), var paymentMethodOptions: PrimerPaymentMethodOptions = PrimerPaymentMethodOptions(), var uiOptions: PrimerUIOptions = PrimerUIOptions(), var debugOptions: PrimerDebugOptions = PrimerDebugOptions(),)
Properties
⚠️ If no settings are provided, the SDK will initialize with its default settings.
Use PrimerSettings
to provide different options based on your use case.
Force the payment handling in the SDK.
By default, the SDK operates in PrimerPaymentHandling.AUTO
mode. In this case the SDK is responsible for creating the payment.
You can use the PrimerPaymentHandling.MANUAL
option
in order to handle the payment creation
by yourself.
Properties
Set the App link that's used to call your app after an out-of-band (OOB) authentication. Supported in 3D Secure protocol versions 2.2.0 and after.
Properties
Sets the card networks that your application accepts.
GooglePayButtonStyle
If set to true
, this specifies that Google Pay can only be used for payments if the user's Google Pay wallet already contains allowed payment methods.
Properties
⚠️ This option is Deprecated
.
Sets the toolbar title of the Activity displaying Klarna views.
Properties
⚠️ This option is Deprecated
.
Sets the toolbar title of the Activity displaying Klarna views.
Properties
Set to false
to hide the loading screen before the Universal Checkout or the Vault Manager.
Set to false
to hide the screen after a successful payment, or tokenization on the vault flow.
Set to false
to hide the error screen when an error occurs.
Set a custom theme for Primer SDK.