Use this method to present the payment method user interface (UI) to the user.
1
func showPaymentMethod(intent: PrimerSessionIntent)
swift
copy
Parameters
PrimerSessionIntent
Use checkout
when you want go through the checkout flow
Use vault
when you want to vault a payment method, so you can use the token to pay another time.
Throws
An exception that will be thrown in case method of the manager has been called using unsupported intent
. Supported payment session intents for given payment method are returned in the onAvailablePaymentMethodsLoaded delegate.