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
contextContextRequired
Android Context of your Activity
or Fragment
.
intentPrimerSessionIntentRequired
Set the preferred session intent when showing paymentMethodType.PrimerSessionIntent.CHECKOUT
PrimerSessionIntent.VAULT
Throws
UnsupportedPaymentIntentException
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 onAvailablePaymentMethodLoaded callback.