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(),
var clientSessionCachingEnabled: Boolean = false,
var apiVersion: PrimerApiVersion = PrimerApiVersion.V2_4
)
PrimerSettings
to provide different options based on your use case.
Hide child attributes
Show child attributes
PrimerPaymentHandling.AUTO
mode. In this case the SDK is responsible for creating the payment.PrimerPaymentHandling.MANUAL
option
in order to handle the payment creation
by yourself.Show child attributes
Hide Properties
true
, this specifies that Google Pay can only be used for payments if the user’s Google
Pay wallet already contains allowed payment methods.Hide PrimerGoogleShippingAddressParameters
true
if the shippingAddressParameters
are also used.Hide Properties
Hide Properties
Show child attributes
Hide Properties
Hide Properties
Hide Properties
false
to hide the loading screen before the Universal Checkout or the Vault Manager.false
to hide the screen after a successful payment, or tokenization on the vault flow.false
to hide the error screen when an error occurs.GESTURES
: The dialog can be dismissed by tapping outside or by swiping down.CLOSE_BUTTON
: A close button is provided, allowing users to dismiss the dialog manually.Hide Properties
true
, responses from the server will be cached on the client side, allowing for faster subsequent
access to the same data within the cache duration. When set to false
, every request to the server will be
processed without utilizing any client-side cache, ensuring that the client always receives the most up-to-date data.PrimerApiVersion.V2_3
- will use ApiVersion 2.3PrimerApiVersion.V2_4
- will use ApiVersion 2.4PrimerApiVersion.LATEST
- will use the latest available ApiVersion versionV2.4
will be used by default.