#awildfatman

1 messages · Page 1 of 1 (latest)

fleet vaultBOT
pale bloom
#

hi there!

#

what's your question?

grim hawk
#

A user subscribed last night 2 hours before the start of next month..we set billing cycle anchor to start from 1st of next month.. We didn't get the confirmation of subscription.. but when we get the stripe subscription_cycle webhoook.. it had total amount = first sub + next month sub

#

to explain.. our sub costs : 8GBP / month

#

since its pro rated... and user subscribed at the last 2 hours.. they were charged 0.02 GBP

#

we didn't get any confirmation through API that subscription is created.

#

but the webhook contained 8 + 0.02 GBP amount in it.. it should have been only 8.00GBP

#

its in production env so we are confused about it

pale bloom
#

can you share the Subscription ID (sub_xxx) and the Event ID (evt_xxx)?

grim hawk
#

sub id : sub_1OemEyK7HrDqoHBWsad9DTqG

pale bloom
#

However it looks like you don't have a webhook endpoint setup to listen to that event

grim hawk
#

yes we don't have we just assume that if api returns 200 and subscription is created.. that everything went ok

pale bloom
#

and the first invoice was for a very small amount ($0.02), and Stripe doesn't allow charges for less than $0.50.
so in this case Stripe didn't Charge the user at all, and waited for the next Invoice to charge $8 + $0.02.

grim hawk
#

Thank you.. makes a lot of sense

#

one more Q

#

when stripe.subscriptions.create goes through just fine.. should we accept that sub is created.. or should we wait for webhook..(which we havenb't implemented yet)