#dishant0144_32519

1 messages · Page 1 of 1 (latest)

sonic micaBOT
#

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.

lost frigate
#

Hi
Could you please share more details ?

frank forge
#

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);

lost frigate
#

Can you share the flow you want to implement

frank forge
#

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 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?

lost frigate
#

Yes, thanks for the clarification.

#

There is no API for fetching existing Customer portal

#

You can store it in your local database

frank forge
#

Okay
Like the customer portal ID you are talking about?

lost frigate
lost frigate
#

or you can simply re-create Customer portal as much as you want (because the customer portal expires after a while in all case)

frank forge
#

Okay
Got it

frank forge
#

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?

lost frigate
frank forge
#

Okay

#

Thanks for the help