Order Creation or Update
Your application determines recipient info for the buyer. It can be an email wallet or wallet address. Create or
update an order with this info to proceed to next step.
API Response
The API response returned from create/update order call(s) will include a
clientSecret and order object that your
application uses to render the Crossmint Embedded Component.Render Crossmint Embedded Component
Use the
clientSecret and order.orderId returned in the API response to render the Crossmint Embedded Component
for credit card checkout.During the initial
quote phase of the order the payment status will be requires-quote.awaiting-payment, which indicates that the order is ready to be paid.
For the complete, authoritative list of payment statuses and their meanings, see the Status Codes page. |
Render the Crossmint Embedded Component
When the order is ready to accept payment, the API response will include aclientSecret and order object. You can use these with the Crossmint Embedded Component to collect the user’s credit card payment.
Example response
Example response
Poll for Status Updates
After making the payment via whichever payment method, you'll need to poll the Get Order API to check on the delivery status and present this info to your user. Refer to the complete get order API reference here.GET https://staging.crossmint.com/api/2022-06-09/orders/<orderId>
Handling Refunded Payments
When polling for order status, you may encounter a situation wherepayment.status is completed but the order also contains a payment.refunded property. This indicates that the payment was initially successful but has since been refunded.
payment.refunded object includes the following fields:
amount: The amount that was refundedcurrency: The currency of the refund
- Display an appropriate message to the user indicating that their payment was refunded
- Prevent any further actions related to the order (such as delivery expectations)
- Provide options for the user to place a new order if desired

