Issue with Stripe webhook testing using CLI
Hi,
I am trying to test payment intent in local using Stripe CLI. I have followed both pages from the doc (Stripe Integration and Stripe Testing). But, when I am testing using the following command:
I have this in the other terminal listening for the webhook:
The API version is matching the one in
I don't understand what could go wrong.
But, when I go to dashboard.stripe.com/test/logs, I can see my requests listed as:
POST /v1/payment_intents
200 OK
API Version 2022-11-15
So maybe it worked but the CLI is giving me an error? I guess the dashboard logs page is more thrustworthy?
I am trying to test payment intent in local using Stripe CLI. I have followed both pages from the doc (Stripe Integration and Stripe Testing). But, when I am testing using the following command:
stripe trigger payment_intent.succeeded --api-version 2022-11-15I have this in the other terminal listening for the webhook:
2024-07-28 15:09:09 --> charge.succeeded [evt_3PhWqWCWXwZlQqXs0YgFiPrS]2024-07-28 15:09:09 <-- [404] POST http://localhost:3000/stripe-webhook [evt_3PhWqWCWXwZlQqXs0YgFiPrS]2024-07-28 15:09:09 --> payment_intent.succeeded [evt_3PhWqWCWXwZlQqXs094ZSBa6]2024-07-28 15:09:09 <-- [404] POST http://localhost:3000/stripe-webhook [evt_3PhWqWCWXwZlQqXs094ZSBa6]2024-07-28 15:09:09 --> payment_intent.created [evt_3PhWqWCWXwZlQqXs0REC6Omq]2024-07-28 15:09:09 <-- [404] POST http://localhost:3000/stripe-webhook [evt_3PhWqWCWXwZlQqXs0REC6Omq]2024-07-28 15:09:24 --> charge.succeeded [evt_3PhWqmCWXwZlQqXs17CkZkYq]2024-07-28 15:09:24 <-- [404] POST http://localhost:3000/stripe-webhook [evt_3PhWqmCWXwZlQqXs17CkZkYq]2024-07-28 15:09:25 --> payment_intent.succeeded [evt_3PhWqmCWXwZlQqXs1xjv7iER]2024-07-28 15:09:25 <-- [404] POST http://localhost:3000/stripe-webhook [evt_3PhWqmCWXwZlQqXs1xjv7iER]2024-07-28 15:09:25 --> payment_intent.created [evt_3PhWqmCWXwZlQqXs15SSlCsC]2024-07-28 15:09:25 <-- [404] POST http://localhost:3000/stripe-webhook [evt_3PhWqmCWXwZlQqXs15SSlCsC]The API version is matching the one in
@src/payment/stripe/stripeClients.ts, the port is the good one (the one running the app) and the path to the webhook is the one defined in the wasp config file with httpRoute: (POST, "/stripe-webhook").I don't understand what could go wrong.
But, when I go to dashboard.stripe.com/test/logs, I can see my requests listed as:
POST /v1/payment_intents
200 OK
API Version 2022-11-15
So maybe it worked but the CLI is giving me an error? I guess the dashboard logs page is more thrustworthy?
