#MindfulSMS
1 messages · Page 1 of 1 (latest)
this is just an HTML page with the pricing table embed code on it.
all the products are active in the pricing table.
got it. do you see the pricing table preview just fine within your dashboard?
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.
Could you share your pricing table code here?
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?
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.
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>
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.
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
that is fine.
then if i put script after the h1. still get error
the HTML is fine, just an error on script
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
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>
same error.
man this is weird.
incognito is an error too.
it really opens fine for you?
can u screenshot what you see
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.
I'm running a local server, no webserver involved
my internal developer sent me this.
he knows how to look for errors better than me, obviously.
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?
Got it, that's it then. You'll need to use a web server to test out this script
Phew! glad to hear
I made some assumptions on my end regarding how you all were testing. Looks like we call this out in our documentation, in case you need to reference this later: https://stripe.com/docs/payments/checkout/pricing-table#limitations:~:text=Testing the pricing table locally