Sardine’s NFT checkout widget offers a quick way to integrate the ability to directly purchase NFTs from fiat through a URL, and then settle with crypto.
clientToken
, which is a unique identifier for each session and user.
Make a POST request to /v1/auth/client-tokens
using Basic Auth by passing base64 encoding of <clientId>:<clientSecret>
The body of this request is used to send information about the NFT and the user to Sardine. More information about this endpoint can be found here
clientToken
, which is needed to create the Checkout
Use your base64 encode( clientId:clientSecret ) to make a call
Constraints
order.confirmed
webhook, along with the frontend events which can be caught with event handlers.
Sardine will emit events which can be handled to understand user action
Expired
- The user didn’t complete the transaction within the expiration
paramterProcessed
- The payment is complete, and the NFT can now be transferred the user.Declined
- The transaction was declined due to issues with their payment method or risk profile.orderId
that is passed.
You should now be able to route users to the Sardine Checkout Widget via your defined URL where they can instantly buy NFTs!