#samaratungajs
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
you won't receive the customer.subscription.created since you're creating a checkout session in payment mode
if you're looking to create a Checkout Session in subscription mode, you can use this field https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data-metadata to store your metadata on the subcription object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
next you shouldn't be listening to payment_intent.* events for subscriptions but rather invoice.* events
Thanks i'll check that
if you're already listening to payment_intent.* events, then you need to check whether the PaymentIntent has a non-empty invoice field and just ignore the event
Hi @swift echo in our usecase we want to checkout mixed content, like subscriptions + items in a single checkout session
is this not possible with stripe as for now?
actually it is possible