How to Set Up thirdweb Pay

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:

Step 1: Create a New API Key

  1. From your thirdweb dashboard, navigate to the "Settings" tab.
  2. Click on "Create a new API key".
  3. Choose whether to allow all domains or restrict it to your platform or production domain.
  4. Click "Next".
  5. Ensure that you save your secret key in a safe and secure place.
  6. Click "Complete".

Now that your API key is created, it automatically has pay services enabled.

Step 2: Configure thirdweb Pay

  1. Go to the "Connect" tab on the thirdweb dashboard.
  2. Scroll down to the "Pay" section.
  3. 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

  1. In the thirdweb Pay dashboard, go to the "Webhooks" tab.
  2. Click on "Create Webhook".
  3. Enter the URL where you want to receive webhook notifications.
  4. Give your webhook a name.
  5. Click "Create".

Your webhook is now successfully set up and ready to receive transaction notifications.

Step 4: Configure Fee Sharing

  1. In the thirdweb Pay dashboard, go to the "Settings" tab.
  2. Under "Fee Sharing", enter the wallet address where you want the developer percentage of thirdweb fee sharing to be sent.
  3. 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!