#arslankhalid067

1 messages ยท Page 1 of 1 (latest)

dull oasisBOT
fluid vine
#

๐Ÿ‘‹ happy to help

#

but I want to restrict the acess of it.
what do you mean exactly?

sharp hedge
#

Thank you @fluid vine .
By restricting access I mean that billing portal link should not be accessible from everywhere or if it is accessbile, it should be for a shortlived time.

#

Currently I have link opened in incognito mode from last 30 to 40 minutes and it is still accessible to me.

fluid vine
#

in all cases your customer needs to do a 2fa to access the Portal

sharp hedge
#

Is there a configuration for it?

fluid vine
sharp hedge
#

Let me check and I will get back to you.

#

@fluid vine - In my case what is being done is like this.

Once a customer subscribe to a plan, we show Manage Billing button to that customer and once customer hits that button we create a session for that customer using the following code,

Stripe::BillingPortal::Session.create({
customer_id: <CUSTOMER_ID>
})

It takes me to the page and there is no 2fa required for it.

Let me know if I am missing out on anything

fluid vine
#

what is shown on the customer portal session?

#

would you mind sharing the link?

sharp hedge
#

It has the information about customer, I am sharing an example from test mode with you as personal message. will that work?

fluid vine
#

if you have the ID that would be enough

#

bps_xxx

sharp hedge
#

I don't see ID in such format in URL. There appear to be
test_xxx

should I share that?

fluid vine
#

if you want you can also share the request ID where you created the Customer Portal Session

dull oasisBOT
sharp hedge
#

"bps_1MuD0tJZWT0QmQRZVYVa5liS"
Is this what you want?

fluid vine
#

perfect thanks

#

the session has expired

sharp hedge
#

I am able to refresh the page and access the page in incognito mode, was it expected behaviour?

fluid vine
#

I'm not really sure

sharp hedge
#

Should I share the url with you in message?

fluid vine
#

no need I have the URL

#

but I can't access it

#

the session has expired

#

would you mind creating a new one

#

and passing the new ID?

sharp hedge
#

Yeah let me create a new one.

#

"bps_1MuDmPJZWT0QmQRZZ9HqPk16"

#

@fluid vine Can you please check for this? ๐Ÿ‘†

warm echo
#

Hi! I'm taking over my colleague. Please, give me a moment to catch up.

sharp hedge
#

Sure.

warm echo
#

I'm checking one more option, please give me a moment

sharp hedge
#

@warm echo - Sure, I am waiting.

warm echo
sharp hedge
#

@warm echo - Please give me some time. I will be checking on it shortly and will get back to you.

warm echo
#

Sure

sharp hedge
#

@warm echo - sorry for the little delay I will check the login page configuration later on as I caught up with some other items atm. Can you please let me know the time after that session expires if I do not provide any time? Or is there a way to provide the expiry time during creating the session

#

I could find Shortlived URL in API documentation but could not see how much time for that shortlived URL

icy goblet
#

Hi ๐Ÿ‘‹ jumping in as my teammate needed to step away. I'm not readily seeing a parameter that would allow you to set an expiration time on either the portal session or portal configuration objects.

I'm not sure offhand how long the sessions are active for, but will see what I can find.

sharp hedge
#

Sure, Please let me know the time frame for expiry of the session if you can find or investigate it

icy goblet
sharp hedge
#

Sure will go through it and will get back here in case I need more assistance. Thank you everyone ๐Ÿ™Œ