Skip to main content
Structure A view that shows Crossmint’s hosted checkout for an order.
Create the order from your backend with the Crossmint Orders API. Pass the orderId and clientSecret from the response. The checkout page collects the payment. It also takes the buyer through the other steps the order needs, such as identity verification.
Pass a CrossmintCheckoutController to observe the order as the buyer progresses. As an alternative, attach onOrderUpdated(_:) and onOrderCreationFailed(_:) to handle the events yourself.

Initializers

init(apiKey:orderId:clientSecret:lineItems:payment:recipient:appearance:identityVerificationHandling:controller:)

Creates a checkout for an order.

Parameters

init(apiKey:orderId:clientSecret:lineItems:payment:recipient:appearance:identityVerificationHandling:controller:environment:)

Creates a checkout for an order with an explicit environment.
The environment normally comes from the API key. Do not use this initializer in new code. Use init(apiKey:orderId:clientSecret:lineItems:payment:recipient:appearance:identityVerificationHandling:controller:) instead.

Instance Properties

Instance Methods

onOrderCreationFailed(_:)

Adds an action to perform when order creation fails. The message describes the failure.

onOrderUpdated(_:)

Adds an action to perform on every order update from the checkout page.