Lesson 05/06 · 8:45 min
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
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
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?
Yes, it is called by Stripe when some event happens on their side.
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
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
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?
Yes, it is called by Stripe when some event happens on their side.