#Lalit-customer-portal
1 messages · Page 1 of 1 (latest)
Hi there 👋 which part of this is giving your troubles? Creating the Customer Portal sessions or getting them to launch in a new window?
its openingin new tab, but i want to show in popup window on my website, i dont want user to redirect to cutomer portal
Gotcha, so that isn't Stripe specific, but you'll want to use the target attribute:
https://www.w3schools.com/tags/att_a_target.asp
nope, let me explain, i have a web page and there is abutton to open customer portal, when user click on that it take user to 'https://billing.stripe.com/session/' something, but i want, when user click on button a popup will open and that opup contains stripe billing portal
Yup, so you want to use the target attribute, specifically it sounds like you want to set it to _blank
From the doc that I linked above:
_blank Opens the linked document in a new window or tab
or if you want to do it in an iframe then you pass the frame's name
in iframe iam getting error Refused to frame 'https://billing.stripe.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'none'".
Sorry, not sure off the top of my head. Looks like the CSP settings on your site don't like our page.
Do you have a link to your test page that I can visit to see this error for myself?
not yet, its in development
i am trying to run following code in html file
<iframe src="https://billing.stripe.com/session/test_YWNjdF8xS0…USGhrVFZzOHpqNERzVWNITDl0TFhWVXlTcGtk0100Xj6xAn3O" id="theiframe" width="500" marginwidth="0" height="500" marginheight="0" scrolling="auto"></iframe>
I will see if that code works for me locally.
thanks
I am getting the same error. Will see if I can find more or fix it
I checked in with my colleagues. Unfortunately, rendering the customer portal is not supported. You will need to do a full redirect
ok thaks