-
public interface PrimerInterface
-
-
Method Summary
Modifier and Type Method Description abstract Unitconfigure(PrimerSettings settings, PrimerCheckoutListener listener)Configures the Primer SDK with PrimerSettings & PrimerCheckoutListener. abstract Unitcleanup()This method should be called when disposing the listener in order to free Primer SDK resource. abstract UnitshowUniversalCheckout(Context context, String clientToken)Initialise and show Primer's Universal Checkout with all configured payment methods. abstract UnitshowVaultManager(Context context, String clientToken)Initialise and show Primer's Vault Manager. abstract UnitshowPaymentMethod(Context context, String clientToken, String paymentMethod, PrimerSessionIntent intent)Initialise and show specific payment method flows with Primer. abstract Unitdismiss(Boolean clearListeners)Dismiss the checkout -
-
Method Detail
-
configure
abstract Unit configure(PrimerSettings settings, PrimerCheckoutListener listener)
Configures the Primer SDK with PrimerSettings & PrimerCheckoutListener.
-
cleanup
abstract Unit cleanup()
-
showUniversalCheckout
abstract 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
abstract Unit showVaultManager(Context context, String clientToken)
Initialise and show Primer's Vault Manager.
- Parameters:
clientToken- base64 string containing information about this Primer session.
-
showPaymentMethod
abstract Unit showPaymentMethod(Context context, String clientToken, String paymentMethod, PrimerSessionIntent intent)
Initialise and show specific payment method flows with Primer.
- Parameters:
clientToken- base64 string containing information about this Primer session.paymentMethod- the payment method flow to be shown.intent- whether to trigger checkout or vault session.
-
-
-
-