Skip to main content

Documentation Index

Fetch the complete documentation index at: https://primer.io/docs/llms.txt

Use this file to discover all available pages before exploring further.

Create a session and start Headless Universal Checkout with its clientToken and your custom settings. Once the session is configured on the SDK the completion handler will be called.
SWIFT
func start(
    withClientToken clientToken: String,
    settings: PrimerSettings? = nil,
    delegate: PrimerHeadlessUniversalCheckoutDelegate? = nil,
    uiDelegate: PrimerHeadlessUniversalCheckoutUIDelegate? = nil,
    completion: @escaping (_ paymentMethods: [PrimerHeadlessUniversalCheckout.PaymentMethod]?, _ err: Error?) -> Void
)

Parameters