Availing Universal Checkout is as easy as implementing one line of code. Note that there are more options which you have to set by passing your SDK settings in the configure function. Please refer to the section below for more information.
func showUniversalCheckout(clientToken:completion:)
Hide Parameters
Client token as returned by the create client session call
The completion handler will notify you that the Universal Checkout has been presented, or that an error has occured.
Availing Universal Checkout is as easy as implementing one line of code:
// 👇 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 } } } }