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
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class Primer.Companion
    • 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.