#nerder
1 messages · Page 1 of 1 (latest)
it seems like that in production the behaviour is different from test environment
no, don't see why it would be(you're creating a sub, not updating one)
because usually when I create a subscription (without freeTrial), i create the sub incomplete, an when the client secret is returned to the frontend and the payment of the first invoice is completed
than it emits a customer.subscription.updated
Ok i think i knew what happen
it was my bad
actually no, can you please take a look at this: https://dashboard.stripe.com/test/connect/accounts/acct_1FuM5ALAVB3C1lDI/customers/cus_NEEkLYPhfIOAq9
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
for some reason in local this are the events that are triggered
but in production is different: https://dashboard.stripe.com/acct_1K55cFKdfJxmrRn3/customers/cus_NDttQXnb6mGhBe
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
the last customer.subscription.updated has been triggered manually from the dashboard
will look in a little bit
ultimately why does it matter? what do you need the event for in your flow?
because in my webhook handler i'm only listening for customer.subscription.updated has I thought that was not necessary to handle created since was always followed by the updated one
but this doesn't seems to be the case in prod
so I'll need to handle that event in my webhook in order to replicate the subscription in my DB