You can use client-side or server-side API keys to implement headless checkout. Check the code samples for the type
of API key you’re using in your application.
We recommend a polling interval of about 2500ms and never below 500ms.
- Client Side
- Server Side
Error Handling
Once the payment has been confirmed, delivery is likely to complete successfully. Before accepting the payment Crossmint simulates the expected transaction, which means that most delivery issues will be prevented before payment is even accepted. Given a successful payment the delivery process will be retried until it completes successfully or determines that delivery is impossible. The most common cause for a delivery failure is that the item is no longer available. In the case of primary sales this could mean that the collection is sold out. For secondary sales the reason could be that someone else bought the item first. Your application should be aware of the potential for delivery to fail and provide information to the buyer on what to expect. In the case of multiple items purchased and partial delivery failure you’ll need to indicate which items were successfully delivered and which items failed.Be sure to let your buyer know that in the case of a failed delivery they will be refunded automatically. If they
have any questions or issues they can reach out to Crossmint support directly for assistance.
walletAddress you can include an optional receiptEmail property within the payment object.

