#MindfulSMS

1 messages · Page 1 of 1 (latest)

paper craneBOT
remote hull
#

Hi there!

#

Mind sharing a screenshot of the error you're seeing?

rocky cedar
#

this is just an HTML page with the pricing table embed code on it.

#

all the products are active in the pricing table.

remote hull
#

got it. do you see the pricing table preview just fine within your dashboard?

rocky cedar
#

yes.

#

it looks fine on the stripe website in the preview panel.

#

but when i copy code and embed on my site, it errors out.

remote hull
#

Could you share your pricing table code here?

rocky cedar
remote hull
#

thanks!

#

Hm, I'm able to embed that code without any issues. Just to rule out everything, are you pasting this within your page's <body> tags?

rocky cedar
#

no. i just have it as a simple html page without any other code around it right now.

#

tried on different browswers too.

#

let me send to a friend. that is odd.

remote hull
#

I see, okay.

#

Try this instead:

<!DOCTYPE html>
<body>
<script async src="https://js.stripe.com/v3/pricing-table.js"></script>
<stripe-pricing-table pricing-table-id="prctbl_1LsV8pCC3JE4B136G5EQomGe"
publishable-key="pk_live_51LYBifCC3JE4B1362nvKuNKUqRrBPbixGECW6SaRiVFpMbGBRWzgLvBPM8m6AEy7TxnZoJqRm9cZQuflwFcnq4on00wHxCjhza">
</stripe-pricing-table>
</body>
</html>
rocky cedar
#

same error.

#

has to be a local computer issue.

#

my friend gets error too.

#

odd.

#

it isn't just me.

#

we are both technical, so it is odd.

remote hull
#

You could try to take the pricing table out of the equation:

<!DOCTYPE html>
<body>
<h1>Hello world</h1>
</body>
</html>

just to make sure you can view the header/content in the body tag

rocky cedar
#

that is fine.

#

then if i put script after the h1. still get error

#

the HTML is fine, just an error on script

remote hull
#

I see. Perhaps a private/incognito window might help? Or you can try pulling up the browser's developer tools/console log to see if there's a hint regarding the error

rocky cedar
#

curious if the problem is i'm running it local without https

remote hull
#

No, that shouldn't affect this. I'm trying the same code locally on my end, without HTTPS:

<body>
<script async src="https://js.stripe.com/v3/pricing-table.js"></script>
<stripe-pricing-table pricing-table-id="prctbl_1LsV8pCC3JE4B136G5EQomGe"
publishable-key="pk_live_51LYBifCC3JE4B1362nvKuNKUqRrBPbixGECW6SaRiVFpMbGBRWzgLvBPM8m6AEy7TxnZoJqRm9cZQuflwFcnq4on00wHxCjhza">
</stripe-pricing-table>
</body>
</html>
rocky cedar
#

same error.

#

man this is weird.

#

incognito is an error too.

#

it really opens fine for you?

#

can u screenshot what you see

remote hull
#

sure!

rocky cedar
#

so odd.

#

are you opening that file local on your computer or did u FTP to a webserver?

#

same error firefox, chrome and safari.

#

I sent to 4 people. All at different locations. They all get the same error as me.

remote hull
#

I'm running a local server, no webserver involved

rocky cedar
#

my internal developer sent me this.

#

he knows how to look for errors better than me, obviously.

remote hull
#

Thanks for sharing this!

#

To be clear, are you just opening the HTML page in your browser or running a local web server to view the page?

rocky cedar
#

i'm just opening an html page in my browser.

#

not going to a locahost like u

remote hull
#

Got it, that's it then. You'll need to use a web server to test out this script

rocky cedar
#

that works there.

#

perfect.

#

odd

#

Thank you.

remote hull
#

Phew! glad to hear