KOTLIN
Parameters
Example
Show a specific payment method using the following code:KOTLIN
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
fun showPaymentMethod(
context: Context,
clientToken: String,
paymentMethod: String,
intent: PrimerSessionIntent,
)
Hide Parameters
class CheckoutActivity : AppCompatActivity() {
// ...
private fun showPaymentMethod(
clientToken: String,
paymentMethodType: String,
sessionIntent: PrimerSessionIntent
) {
// 👇 Add this
Primer.instance.showPaymentMethod(context, clientToken, paymentMethodType, sessionIntent)
}
}