Create a fully customized checkout experience with credit cards
polygon-amoy
testnet
collectionId
ready.
orders.create
, orders.update
, and orders.read
scopes enabled. More info on creating API keys here.POST
https://staging.crossmint.com/api/2022-06-09/orders
Refer to the complete create order API reference here.
Example Response
quote
phase and is awaiting a recipient
to be set. Setting a recipient does not mean that we are sending the NFT to them; it is merely used to verify that the intended recipient is a valid address, before beginning gathering payment info.
orderId
returned from your API response to find your incomplete order object and status.
recipient
is passed as an email, Crossmint will automatically create a custodial wallet associated with this email, that can be accessed by logging in to the (staging) Crossmint Wallet or from your website if you're using whitelabel wallets.
PATCH
https://staging.crossmint.com/api/2022-06-09/orders/<orderId>
recipient.email
or in payment.receiptEmail
. If one is not specified, the API will not return the fields
necessary to collect the user’s payment.stripePublishableKey
and stripeClientSecret
, which can be found within order.payment.preparation
.
key
property on the Elements
component is important to re-render the payment element if either the
stripeClientSecret
or stripePublishableKey
change, as these fields can't be 'live' updated@stripe/react-stripe-js
to be:
SubmitButton
component with the following code:
order.payment.preparation
in order to see the live Payment Element).
GET
https://staging.crossmint.com/api/2022-06-09/orders/<orderId>