Routing for using Stripe CLI #140
Unanswered
hondaman900
asked this question in
Q&A
Replies: 2 comments
-
@hondaman900 have you fixed the issue? Same issue 158 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Why are legitimate issues in this repository getting locked, moved and left to die without a response in the "discussions" section? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I'm working on my local dev copy, implementing
laravel-stripe-webhooks
. My route to myconfig\stripe-webhooks.php
endpoint is:Route::stripeWebhooks('stripe-webhook');
Since this work is not yet on my live site, I have not set the endpoint in the Stripe dashboard, but I do provide it in the Stripe CLI as follows:
stripe listen --forward-to localhost:8080/DS_dev_01/config/stripe-webhooks.php
In my call to Stripe to launch the checkout page I use the same endpoint as follows:
In my
stripe-webhooks.php
I have the standard provided code, and here's my call to thepayment_intent.succeeded
hook:And here's the simple job helper code that is not being executed/reached:
Both in the Stripe CLI and Stripe Dashboard I'm seeing a
200
success response for this event and others. The package is writing the payload to my database so I know the process from Stripe's viewpoint and the package receiving end are working, but the job is not being processed, and I'm getting no responses from eitherdd()
orlog::
debug messaging inside the job code.Since everything looks correct I'm wondering if the routing is the issue. I have my route setup as recommended for the package, but in the CLI I provide an absolute path to the endpoint, and in the session info sent to Stripe it's another concatenated path, and then there's none in the Stripe Dashboard because I'm using the Stripe CLI. Am I doing this right or is there a missing piece or conflict that allows the process to go through but never reach the job? Without the job functioning I'm dead in the water and can't process anything in my app.
Any insight and suggestions are very welcome.
Beta Was this translation helpful? Give feedback.
All reactions