Show Primer’s Drop-In Checkout. The simplest way to integrate with Primer. With just a few lines of code, you can display a fully in-context checkout UI with all your payment methods. Note that there are more options which you can set by passing your SDK settings in the configure function.
KOTLIN
fun showUniversalCheckout(context: Context, clientToken: String)

Parameters

Example

Availing Universal Checkout is as easy as implementing one line of code:
KOTLIN

class CheckoutActivity : AppCompatActivity() {

	// ...

	private fun showUniversalCheckout(clientToken: String) {
        // 👇 Add this
        Primer.instance.showUniversalCheckout(context, clientToken)
    }
}