Courses

Stripe Checkout Form with Laravel Cashier

Step 5. Delivering the Product: Stripe Webhooks

Previous: Step 4. Processing Payment with Laravel Cashier
avatar

im trying to use phpunit for test the jobs, but i cant generate the post request, i always get signature invalid, may you tell me a tip to generate the correct post? Thanks

avatar

Testing Stripe payments is much more tricky than this, I would do that with mocking/faking the providers. I talked about that in my course about Advanced Laravel Testing and also in this article: Laravel Testing: Mocking/Faking External 3rd Party APIs

avatar
You can use Markdown
avatar

You have created Job for stripe hooks. Who call this endpoint where is job? Is it called by stripe hook? I'm not catch this, can you simple explain?

avatar

Yes, it is called by Stripe when some event happens on their side.

avatar
You can use Markdown
avatar
You can use Markdown