Enable recurring payments, one-click checkout, and delayed payment capture with the iOS SDK.
To have customers save payment methods rather than just pay directly use the Vault Manager.
Primer.shared.showVaultManager(on: self)
All payment methods saved by a customer can be fetched with fetchVaultedPaymentMethods()
:
Primer.shared.fetchVaultedPaymentMethods { result in
DispatchQueue.main.async {
switch result {
case .failure(let err):
// handle error
case .success(let tokens):
// handle success
}
}
}