#RafaCitec-webhook-checkout

1 messages · Page 1 of 1 (latest)

dusky igloo
#

Hello 👋
What's your question?

full fulcrum
#

hello

#

I use Stripe checkout and I generate a payment by browser

#

and in my local webhook I receive all events of image

#

I am using this " if event_type == "payment_intent.succeeded":
"

#

event payment_intent.succeeded for get confirmation of correct payment but... this event not has expiration date of suscription

#

(we have 2 suscription products)

#

which event is better, has more information, to capture a customer's payment? or your monthly renewal of your subscription

split elm
#

Hi there

#

Stepping in as Hanzo had to step away

#

We recommend using checkout.session.completed for Checkout Session webhooks.

#

Then, based on that you can retrieve the necessary objects.

full fulcrum
#

checkout.session.completed works same in a live payment of client and also in a recurrent payment? auntomatic payment monthly

#

I have use event_type: "payment_intent.suceeded"

#

you say to use the "checkout.session.completed" event or that after capturing the payment with "payment_intent.suceeded" use the "checkout.session.completed" to collect all the session information?

split elm
#

Yes checkout.session.completed will fire regardless of a one-off payment or a recurring payment.

#

It will contain the PaymentIntent or Subscription object within the event data so you could then retrieve the relevant object thereafter to access all the necessary details.

full fulcrum
#

Ok I see

#

How I convert this in date in Python "expires_at": 1658419288, ?