Skip to content

Commit 0256e67

Browse files
committed
Update thirdweb version and README
1 parent 4f551d8 commit 0256e67

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,15 @@ Head to our [Contract Explorer](https://thirdweb.com/explore) and choose the tok
3333

3434
### Creating a Pay Webhook
3535

36-
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`.
36+
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`.
37+
38+
#### Testing your Pay Webhook
39+
40+
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:
41+
42+
```bash
43+
whcli forward --token=36f7ceed-01fb-419e-b810-30c72575c88f --target=http://localhost:3000/api
44+
```
3745

3846
### Deploying an Engine
3947

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"next": "14.2.8",
1515
"react": "^18",
1616
"react-dom": "^18",
17-
"thirdweb": "^5.51.0"
17+
"thirdweb": "^5.61.1"
1818
},
1919
"devDependencies": {
2020
"@types/node": "^20",

0 commit comments

Comments
 (0)