Package 

Class Primer

  • All Implemented Interfaces:
    io.primer.android.PrimerInterface , io.primer.android.di.DIAppComponent , org.koin.core.component.KoinComponent

    
    public final class Primer
     implements PrimerInterface, DIAppComponent
                        
    • Method Detail

      • cleanup

         Unit cleanup()

        This method should be called when disposing the listener in order to free Primer SDK resource. Once instance of Primer has freed up the used resources, it is in the same state as newly created Primer and can be used once again, but should go through configure once again.

      • 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.
      • showPaymentMethod

         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.