-
- All Implemented Interfaces:
-
io.primer.android.PrimerInterface,io.primer.android.di.DIAppComponent,org.koin.core.component.KoinComponent
public final class Primer implements PrimerInterface, DIAppComponent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPrimer.Companion
-
Method Summary
Modifier and Type Method Description Unitconfigure(PrimerSettings settings, PrimerCheckoutListener listener)Configures the Primer SDK with PrimerSettings & PrimerCheckoutListener. Unitcleanup()This method should be called when disposing the listener in order to free Primer SDK resource. UnitshowUniversalCheckout(Context context, String clientToken)Initialise and show Primer's Universal Checkout with all configured payment methods. UnitshowVaultManager(Context context, String clientToken)Initialise and show Primer's Vault Manager. Unitdismiss(Boolean clearListeners)Dismiss the checkout -
-
Method Detail
-
configure
Unit configure(PrimerSettings settings, PrimerCheckoutListener listener)
Configures the Primer SDK with PrimerSettings & PrimerCheckoutListener.
-
cleanup
Unit cleanup()
-
showUniversalCheckout
Unit showUniversalCheckout(Context context, String clientToken)
Initialise and show Primer's Universal Checkout with all configured payment methods.
- Parameters:
clientToken- base64 string containing information about this Primer session.
-
showVaultManager
Unit showVaultManager(Context context, String clientToken)
Initialise and show Primer's Vault Manager.
- Parameters:
clientToken- base64 string containing information about this Primer session.
-
-
-
-