Use this method to present the payment method user interface (UI) to the user.

12
@Throws(UnsupportedPaymentIntentException::class)fun showPaymentMethod(context: Context, sessionIntent: PrimerSessionIntent)
kotlin
copy

Parameters

context
ContextRequired

Android Context of your Activity or Fragment.

intent
PrimerSessionIntentRequired
Set the preferred session intent when showing paymentMethodType.

Throws

An exception that will be thrown in case method of the manager has been called using unsupported sessionIntent. Supported payment session intents for given payment method are returned in onAvailablePaymentMethodsLoaded callback.