#dishant0144_32519
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- dishant0144_32519, 1 day ago, 5 messages
- dishant0144_32519, 2 days ago, 12 messages
- dishant0144_32519, 3 days ago, 30 messages
- dishant0144_32519, 3 days ago, 7 messages
Hi
Could you please share more details ?
Sure
Righ now I am creating customer portal link thru API using below code
var options = new Stripe.BillingPortal.SessionCreateOptions
{
Customer = customer.Id,
ReturnUrl = "https://example.com/account",
Configuration = custPortalConfig.Id
};
var custPortalService = new Stripe.BillingPortal.SessionService();
so Is there any way where I can get that customer portal is activated on that account or not?
and here the custPortalConfig.Id is getting data from here
var custPortalConfigservice = new Stripe.BillingPortal.ConfigurationService();
var custPortalConfig = custPortalConfigservice.Create(custPortalOptions, requestOption);
What account exactly ?I'm not seeing an AccountId ?
Can you share the flow you want to implement
Okay
So right now after the payment made from stripe's payment element I am redirecting customer to Thank you page and in that page I am creating one link where customer can see their subscriptions
So I also just now found that we can configure billin portal from API using https://stripe.com/docs/api/customer_portal/configurations/create this
so I am just wonedring that Is that stripe can tell me if there is already any billing customer portal is configured or not?
Are you getting this?
Yes, thanks for the clarification.
There is no API for fetching existing Customer portal
You can store it in your local database
Okay
Like the customer portal ID you are talking about?
However, you can create and store configurations:
https://stripe.com/docs/api/customer_portal/configurations
And the url and all fields that you may need
or you can simply re-create Customer portal as much as you want (because the customer portal expires after a while in all case)
Okay
Got it
And also one question from charge.succeed event we are getting receipt url so after opening that URL for subscription payment there is one button called "Manage Subscription" on click on that it'll redirect to billing.stripe.com link
form there customer can enter their email and then got the customer portal link
so can we hide that button?
No.