Closed m4hdin4 closed 10 months ago
i tried it with v1.18.0 and had it working. could you please upgrade your stripe CLI and try again
$ stripe --version
stripe version 1.18.0
st-etsai2:pay-server etsai$ stripe trigger checkout.session.completed
Setting up fixture for: product
Running fixture for: product
Setting up fixture for: price
Running fixture for: price
Setting up fixture for: checkout_session
Running fixture for: checkout_session
Setting up fixture for: payment_page
Running fixture for: payment_page
Setting up fixture for: payment_method
Running fixture for: payment_method
Setting up fixture for: payment_page_confirm
Running fixture for: payment_page_confirm
Trigger succeeded! Check dashboard for event details.
2023-11-30 10:19:42 --> product.created [evt_1OIEpuB7Y77i2nzMBPMwEj52]
2023-11-30 10:19:42 --> price.created [evt_1OIEpuB7Y77i2nzMnV3Iv13h]
2023-11-30 10:19:43 <-- [200] POST https://postman-echo.com/post [evt_1OIEpuB7Y77i2nzMBPMwEj52]
2023-11-30 10:19:43 <-- [200] POST https://postman-echo.com/post [evt_1OIEpuB7Y77i2nzMnV3Iv13h]
2023-11-30 10:19:43 --> payment_intent.created [evt_3OIEpvB7Y77i2nzM01idcEvH]
2023-11-30 10:19:43 <-- [200] POST https://postman-echo.com/post [evt_3OIEpvB7Y77i2nzM01idcEvH]
2023-11-30 10:19:45 --> customer.created [evt_1OIEpxB7Y77i2nzMmoDF32hf]
2023-11-30 10:19:45 <-- [200] POST https://postman-echo.com/post [evt_1OIEpxB7Y77i2nzMmoDF32hf]
2023-11-30 10:19:45 --> payment_intent.succeeded [evt_3OIEpvB7Y77i2nzM0L571WVW]
2023-11-30 10:19:45 --> charge.succeeded [evt_3OIEpvB7Y77i2nzM03wd2ggc]
2023-11-30 10:19:45 <-- [200] POST https://postman-echo.com/post [evt_3OIEpvB7Y77i2nzM0L571WVW]
2023-11-30 10:19:46 <-- [200] POST https://postman-echo.com/post [evt_3OIEpvB7Y77i2nzM03wd2ggc]
2023-11-30 10:19:46 --> checkout.session.completed [evt_1OIEpyB7Y77i2nzMfAQg0zwv]
2023-11-30 10:19:46 <-- [200] POST https://postman-echo.com/post [evt_1OIEpyB7Y77i2nzMfAQg0zwv]
Issue
Webhooks: checkout.session.completed not being sent by stripe trigger
Expected Behavior
I expect to be able to use the command $ stripe trigger checkout.session.completed
Steps to reproduce
Open two shells and enter the following two commands: $ stripe listen --forward-to 0.0.0.0:8080/api/v1/payment/complete/webhook (my endpoint URL) $ stripe trigger checkout.session.completed
Traceback
$ stripe trigger checkout.session.completed
Setting up fixture for: product Running fixture for: product Setting up fixture for: price Running fixture for: price Setting up fixture for: checkout_session Running fixture for: checkout_session Setting up fixture for: payment_page Running fixture for: payment_page Setting up fixture for: payment_method Running fixture for: payment_method Setting up fixture for: payment_page_confirm Running fixture for: payment_page_confirm Trigger succeeded! Check dashboard for event details.
$ stripe listen --forward-to 0.0.0.0:8080/api/v1/payment/complete/webhook --skip-verify
Environment
macOS
stripe version: 1.17.0