#Lalit-customer-portal

1 messages · Page 1 of 1 (latest)

brisk flume
#

Hi there 👋 which part of this is giving your troubles? Creating the Customer Portal sessions or getting them to launch in a new window?

sour escarp
#

its openingin new tab, but i want to show in popup window on my website, i dont want user to redirect to cutomer portal

brisk flume
#

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

sour escarp
#

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

brisk flume
#

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

sour escarp
#

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'".

Stripe Billing powers recurring payments and subscription business models with tools to reduce churn. Use Stripe’s APIs to quickly set up recurring billing and automatic payments for your business. Easily create and manage subscriptions and recurring invoices from the Dashboard.

sour escarp
#

@brisk flume any idea

#

?

brisk flume
#

Sorry, not sure off the top of my head. Looks like the CSP settings on your site don't like our page.

vagrant wave
#

Do you have a link to your test page that I can visit to see this error for myself?

sour escarp
#

not yet, its in development

#

i am trying to run following code in html file

vagrant wave
#

I will see if that code works for me locally.

sour escarp
#

thanks

vagrant wave
#

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

sour escarp
#

ok thaks