From 0256e674d9c718c0e19849b02e78631bcadf9cb4 Mon Sep 17 00:00:00 2001 From: Ian Mukherjee Date: Tue, 8 Oct 2024 11:01:17 -0400 Subject: [PATCH] Update thirdweb version and README --- README.md | 10 +++++++++- package.json | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 82b275b..d9acfa2 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,15 @@ Head to our [Contract Explorer](https://thirdweb.com/explore) and choose the tok ### Creating a Pay Webhook -Navigate to your [Pay Dashboard](https://thirdweb.com/dashboard/connect/pay), click the "Webhooks" tab, and click "Create Webhook". Enter the URL where you'd like to listen events. In our case, since we are testing locally, we'll need to specify `localhost:3000/api` (or the port of your choice). Copy the generated Webhook Secret and paste it into your `.env`. +Navigate to your [Pay Dashboard](https://thirdweb.com/dashboard/connect/pay), click the "Webhooks" tab, and click "Create Webhook". Enter the URL where you'd like to listen events. Copy the generated Webhook Secret and paste it into your `.env`. + +#### Testing your Pay Webhook + +For testing, we recommend using [https://webhook.site/](https://webhook.site/). Create a Pay webhook using the generated webhook URL, and then use the webhook CLI and the token (found at the end of your webhook.site URL) to forward incoming requests to your localhost. Here is an example CLI command: + +```bash +whcli forward --token=36f7ceed-01fb-419e-b810-30c72575c88f --target=http://localhost:3000/api +``` ### Deploying an Engine diff --git a/package.json b/package.json index 179d6f5..dc047b0 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "next": "14.2.8", "react": "^18", "react-dom": "^18", - "thirdweb": "^5.51.0" + "thirdweb": "^5.61.1" }, "devDependencies": { "@types/node": "^20",