Enable recurring payments, one-click checkout, and delayed payment capture with the iOS SDK.

Default to saving payment methods

To have customers save payment methods rather than just pay directly use the Vault Manager.

Primer.shared.showVaultManager(on: self)

Fetch saved payment methods of a customer

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
        }
    }
}