#Vinicius-session-metadata

1 messages ยท Page 1 of 1 (latest)

azure wharf
#

Hi there! The easiest thing here is to just ignore charge.succeeded and instead utilize the checkout.session.completed events as that will contain the Checkout Session metadata. Is there a reason you are relying on charge.succeeded when using Checkout?

charred lantern
#

Hey, thanks for information. I'm using charge.succeeded to get payment event, but I can change to session.completed with this returns me if payments is finished

#

I already test now, using checkout.session.completed all information is there. Thanks very much

azure wharf
#

Sure thing!

charred lantern
#

Thanks, I'll read

#

Sorry, but I have another question. To recurrency of payment, what event is recommended?

#

checkout.session.async_payment_succeeded ?

azure wharf
#

You mean for off_session recurring payments?

#

Like payments you are initiating after the initial transaction with the saved paymentmethod?

charred lantern
#

Yeap, when customers sign up on the site, they can use stripe checkout, but after that it should automatically charge

azure wharf
#

Are you using Subscriptions?

charred lantern
#

Yes

azure wharf
#

Thanks. So there are two options โ€” you can either listen for payment_intent.succeeded or invoice.paid depending on what information you want back.

charred lantern
#

Ok

#

Thanks very much for help ๐Ÿ™‚