This example dApp demonstrates how you may use a paymant gateway of your choice to work together with Custonomy's API to execute an NFT mint.
✅ Custonomy Widget Integration
✅ Custonomy Mint API
✅ Mint NFT using Crypto
✅ Mint NFT using Credit Card via Stripe
✅ View NFT Collection
✅ Transfer NFT
Clone the repository and install the dependencies.
yarn install
Once installed, enter your secrets to the .env files, one for the frontend, at path packages/react-app and one for the backend, at path packages/backend.
To run the app, start both the frontend and the backend.
yarn react-app:start
yarn backend:dev
To begin, create an account at Stripe and go to the test dashboard to generate two API Keys. In our case, we have setup our listener at localhost:4242/webhook. In this example, the listener's main function will be to listen to successful purchases and record the pruchase into the DB. Follow this guide to use the Stripe CLI to forward the events to our localhost. For more information on this, please check out the official documentation by Stripe here.
./stripe listen --forward-to localhost:4242/webhook
To setup a PostgreSQL DB. Please find the necessary DB model and Knex migration files in packages/backend/models
Please check out this guide on Knex migration.