#Adi-customer-portal

1 messages · Page 1 of 1 (latest)

dawn lodge
#

Hey there. Can you share the ID of the portal session?

dusty grotto
#

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

dawn lodge
#

Well, you can create a Customer without a Subscription

dusty grotto
#

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

dawn lodge
#

But there won't be any subscriptions to manage in the Customer Portal (just their payment methods)

dusty grotto
#

I have already created product but not able to add it on customer billing portal

dawn lodge
#

Can you share the ID of the portal session so I can see how it's configured?

#

Also, the Customer ID

dusty grotto
#

portal id from where I can get it?

#

customer id: cus_LEfh0UNg0Kujim

dawn lodge
dusty grotto
#

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

dawn lodge
#

Ah

#

So you're expecting the $0 free price to appear in the dropdown?

dusty grotto
#

yes

#

correct

dawn lodge
#

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

dusty grotto
#

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

dusty grotto
#

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?

dawn lodge
#

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)

dusty grotto
#

ok got it