Skip to content

Commit e52a272

Browse files
committed
Added further instructions
1 parent ff87911 commit e52a272

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/examples/stripe-webhook.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ To test everything is working you can use the Stripe CLI to send test events to
143143

144144
1. Install the [Stripe CLI](https://stripe.com/docs/stripe-cli#install), and login
145145
2. Follow the instructions to [test your handler](https://docs.stripe.com/webhooks#test-webhook). This will include a temporary `STRIPE_WEBHOOK_SECRET` that you can use for testing.
146-
3. If your endpoint is set up correctly, you should see the Stripe events logged in your console with a status of `200`.
147-
4. Then, check the [Trigger.dev](https://cloud.trigger.dev) dashboard and you should see the successful run of the `stripe-webhook` task.
146+
3. When triggering the event, use the `checkout.session.completed` event type. With the Stripe CLI: `stripe trigger checkout.session.completed`
147+
4. If your endpoint is set up correctly, you should see the Stripe events logged in your console with a status of `200`.
148+
5. Then, check the [Trigger.dev](https://cloud.trigger.dev) dashboard and you should see the successful run of the `stripe-webhook` task.
148149

149150
For more information on setting up and testing Stripe webhooks, refer to the [Stripe Webhook Documentation](https://stripe.com/docs/webhooks).

0 commit comments

Comments
 (0)