How to Set Up thirdweb Pay
In this guide, we'll walk through the process of setting up thirdweb Pay, including creating an API key, configuring fee sharing, and setting up a webhook to listen for transactions. By the end of this guide, you'll have a fully functional thirdweb Pay integration ready to use in your application.
To get started, check out the full tutorial video:
Prerequisites
Before we begin, make sure you have the following:
- A thirdweb account
Step 1: Create a New API Key
- From your thirdweb dashboard, navigate to the "Settings" tab.
- Click on "Create a new API key".
- Choose whether to allow all domains or restrict it to your platform or production domain.
- Click "Next".
- Ensure that you save your secret key in a safe and secure place.
- Click "Complete".
Now that your API key is created, it automatically has pay services enabled.
Step 2: Configure thirdweb Pay
- Go to the "Connect" tab on the thirdweb dashboard.
- Scroll down to the "Pay" section.
- In the right-hand corner, click the dropdown and select the API key you just created.
In this dashboard, you'll be able to see all the analytics for thirdweb Pay transactions.
Step 3: Set Up a Webhook
- In the thirdweb Pay dashboard, go to the "Webhooks" tab.
- Click on "Create Webhook".
- Enter the URL where you want to receive webhook notifications.
- Give your webhook a name.
- Click "Create".
Your webhook is now successfully set up and ready to receive transaction notifications.
Step 4: Configure Fee Sharing
- In the thirdweb Pay dashboard, go to the "Settings" tab.
- Under "Fee Sharing", enter the wallet address where you want the developer percentage of thirdweb fee sharing to be sent.
- Click "Save Changes".
With fee sharing configured, the specified wallet address will receive the designated portion of the fees generated through thirdweb Pay transactions.
Conclusion
Congratulations! You have successfully set up thirdweb Pay, including creating an API key, configuring fee sharing, and setting up a webhook to listen for transactions. Your thirdweb Pay integration is now ready to be used in your application.
Stay tuned for more exciting content on building web3 applications with thirdweb!