Primer
var settings: PrimerSettings
(get only), use the configure
function to set the PrimerSettings
.fun configure(settings: PrimerSettings?, listener: PrimerCheckoutListener?)
: Omit settings to initialize with the default
settings.fun showUniversalCheckout(context: Context, clientToken: String)
: Show the Universal Checkout with a client token (that you got from a client session API call).fun showVaultManager(context: Context, clientToken: String)
: Show the Vault Manager with a client token (that you got from a client session API call).fun``showPaymentMethod(context: Context, clientToken: String,``paymentMethod: String,``intent: PrimerSessionIntent)
: Present a payment method with a client token (that you got from a client session API call), and your intent
(CHECKOUT
or VAULT
).fun dismiss(clearListeners: Boolean)
: Dismisses the SDK and cleans listeners attached to the SDK added in configure
step.fun cleanup
: This method should be called when disposing the listener in order to free Primer SDK resource.PrimerSettings
<aside> ⚠️ If no settings are provided, the SDK will initialize with its default settings.
</aside>
paymentHandling: [PrimerPaymentHandling](<https://www.notion.so/API-Reference-e58ee6d184ff4cd7ae2f90c6b28aaaba>)
locale: [Locale](<https://www.notion.so/API-Reference-e58ee6d184ff4cd7ae2f90c6b28aaaba>)
paymentMethodOptions: [PrimerPaymentMethodOptions](<https://www.notion.so/API-Reference-e58ee6d184ff4cd7ae2f90c6b28aaaba>)
uiOptions: [PrimerUIOptions](<https://www.notion.so/API-Reference-e58ee6d184ff4cd7ae2f90c6b28aaaba>)
debugOptions: [PrimerDebugOptions](<https://www.notion.so/API-Reference-e58ee6d184ff4cd7ae2f90c6b28aaaba>)
PrimerPaymentHandling
AUTO
: Universal Checkout creates and handles payments automatically (default flow)MANUAL
: Create and handle payments manuallyLocale