#Adi-customer-portal
1 messages · Page 1 of 1 (latest)
ok
I have one question if I want to enable customer billing portal for user to upgrade/downgrade plan then first he has to subscribe to some plan then only customer billing portal will work for him right? Without starting subscription how can we get customer id thats why
Well, you can create a Customer without a Subscription
My goal is to implement upgrade/downgrade plan with these pricing $0 $10 & $20 plan. $0 plan should automatically start when user sign up on my application. But now I want to implement upgrade/downgrade. So that user can downgrade from $10 or $20 to free plan or upgrade
But there won't be any subscriptions to manage in the Customer Portal (just their payment methods)
Can you share the ID of the portal session so I can see how it's configured?
Also, the Customer ID
When you create it
on dashboard I am not able to see it anywhere
I have not written any code as of know. I am making configuration on dashboard as of now
My guess is that they can't downgrade to free as they're currently on a trial
Try test it with a customer who's not currently on a free/trial subscription
My guess is that they can't downgrade to free as they're currently on a trial
So do you mean to say only upgrade/downgrade will work for non zero price value only??
What I am doing currently on sign up user automatically should get added to free plan i.e $0 plan and then later he can upgrade downgrade thats what I want to do.
Initially user will navigated to inbuilt checkout page of stripe once plan is selected I store details in db next time user comes he will be navigated to customer billing portal and not checkout inbuilt stripe page
That should work. Does it not?
let em try it out once will get back to you if facing any challenge or issue
In stripe docs I see createOrder and fullfillOrder should I store user payment details in DB only after order is
fullFilled that is payment status = paid?? Can checkout.session.completed event be triggered but payment status is not set to paid can this scenario happen? if yes then saving details in DB must be done after
checkout.session.completed is triggered & session.payment_status === 'paid' is this correct understanding?
Can checkout.session.completed event be triggered but payment status is not set to paid can this scenario happen
In cases where no payment is required (i.e. a free trial) or you're using a non-card payment (they take ~days to clear)
ok got it