Show Primer's Drop-In Vault Manager.
Vault Manager is used to manage the customer's payment methods stored in the Primer Vault.
Note that there are more options which you can set by passing your SDK settings in the configure function.
1
fun showVaultManager(context: Context, clientToken: String)
kotlin
copy
Parameters
contextContextRequired
Android Context of your Activity
or Fragment
.
clientTokenstringRequired
A client token as returned by the create client session call.
Example
Availing Vault Manager can be done using following code:
123456789
class CheckoutActivity : AppCompatActivity() { // ... private fun showVaultManager(clientToken: String) { // 👇 Add this Primer.instance.showVaultManager(context, clientToken) }}
kotlin
copy