#Vinicius-session-metadata
1 messages ยท Page 1 of 1 (latest)
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?
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
Sure thing!
Recommend giving a read through https://stripe.com/docs/payments/checkout/fulfill-orders if you haven't as it will talk about the async event/payments as well!
Thanks, I'll read
Sorry, but I have another question. To recurrency of payment, what event is recommended?
checkout.session.async_payment_succeeded ?
You mean for off_session recurring payments?
Like payments you are initiating after the initial transaction with the saved paymentmethod?
Yeap, when customers sign up on the site, they can use stripe checkout, but after that it should automatically charge
Are you using Subscriptions?
Yes
Thanks. So there are two options โ you can either listen for payment_intent.succeeded or invoice.paid depending on what information you want back.