#Surya-Mani
1 messages · Page 1 of 1 (latest)
i need to display current plan of user how should i do that?
You can find the existing subscriptions of a customer ID with https://stripe.com/docs/api/subscriptions/list
if i use this api i should show the current plan of user in screen
Once you have the Subscription object, you can check its price here: https://stripe.com/docs/api/subscriptions/object#subscription_object-items-data
But I recommend storing this information in your own database, this way it's easier to display on your website.
i need to display the billing details how should i do that?
What exactly do you want to display? The price of the subscription?
i have created this design and need to display the details i have design on this page
Step 1: Find the Subscription ID for your customer
Step 2: Display all the information you need by looking at the subscription object
i need a screen like this in my website how should i get?
This is the customer portal. You can learn more about this here: https://stripe.com/docs/no-code/customer-portal
And if you want to build your own customer portal, then follow the steps I descibred above.
where should you describe
if i use no code it has one time passcode step i didn't need that i need without one time passcode
if i use no code it has one time passcode step i didn't need that i need without one time passcode
Then use this: https://stripe.com/docs/customer-management/integrate-customer-portal
where should you describe
- Step 1: Find the Subscription ID for your customer with https://stripe.com/docs/api/subscriptions/list
- Step 2: Display all the information you need by looking at the subscription object, like the price here https://stripe.com/docs/api/subscriptions/object#subscription_object-items-data
But I recommend storing this information in your own database, this way it's easier to display on your website.