#invite4ever-checkout-webhooks
1 messages · Page 1 of 1 (latest)
Hey!
What's your underlying use case? You're trying to provision access to your app following a subscription?
Yes, we have a few different online products and plans, and user will choose which product to buy then we will create checkout and after specific webhooks will arrive we need to make certains actions for that users subscription for example create enalbe that product set limits and etc.
Perfect, and how are you currently setting metadata? Can you share example code or an API request ID (req_xxx)?
req_U2GdZR7HGrunKR should be this
And your expectation that this metadata by on other events? Any in particular?
with our previous payment provider we had that every their webhook had our custom parameter, so we want something similar because it was easy to associate payment provider subscription with our database user's subscription. But i saw that Stripe has a lot more webhooks than our previous provider 😀
So i guess not every event could be associated with users subscription for e.g account events (not realated to Stripe subscription events), but would be very nice to associate subscription related events
In that case, you should use the subscription_data.metadata parameter when creating your Checkout Session: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data-metadata
It'll then be set on the related Subscription object and included in all customer.subscription.* events
ok, thank you i will try.