SWIFT
Parameters
Example
Availing Universal Checkout is as easy as implementing one line of code:SWIFT
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
func showUniversalCheckout(clientToken:completion:)
Hide Parameters
// 👇 Add this
import PrimerSDK
class MyViewController: UIViewController {
// ...
@IBAction func openUniversalCheckoutTapped(_ sender: Any) {
// 👇 Add this
Primer.shared.showUniversalCheckout(clientToken: clientToken) { err in
if let err {
// Handle the error
}
}
}
}