#vadim70

1 messages · Page 1 of 1 (latest)

terse hareBOT
shrewd basin
#

Hello

#

So to clarify, you have an HTTPS endpoint set up?

lone ravine
#

Yes

shrewd basin
#

Okay then as long as you trigger an Event of the type that your Webhook endpoint is listening for it will be sent to that endpoint.

#

You can use the CLI and use stripe trigger or you can just make the necessary API requests yourself

lone ravine
#

I see, so "stripe trigger" command actually causes stripe server to send an event to the actual endpoint? Right, but since I'm getting an error it means something wrong with the endpoint?

shrewd basin
#

stripe trigger executes a fixture which is a set of API requests in order to generate the Event that you want

#

So basically, yes.

terse hareBOT
lone ravine
#

Okay, is there a way to check that endpoint is valid from my dashboard?

shrewd basin
#

You can trigger certain Events from your Dashboard, but some you need to use the CLI or use the API

#

Depends on the Event you want to test

lone ravine
#

So, I haven't yet studied all the events from documentation, but what I have is the simplest form of one-time payments.
As I got from docs I have to create a payment session and generate a payment link on my side and then wait for an event of successful payment to be able to link the user and the event.
I guess I need those events?
checkout.session.async_payment_succeeded
checkout.session.completed

shrewd basin
#

Yep if you are working with Stripe Checkout then those are what you want.

#

You can't trigger those from the Dashboard

#

So you need to either use the CLI or create/complete a Checkout Session

lone ravine
#

Okay, does create/complete a checkout means a real one?

shrewd basin
#

In test mode, yes.

lone ravine
#

I see, is there any guide to do that via test mode?