I want to copy this STRIPE’s embeddable pricing table feature.

FOR INFO: There is a stripe embeddable pricing table feature In it, First, we finish designing the pricing table. Then, It spits out a code (a script tag), that we can embed in our HTML. For like, I have a pricing page template that you want to use, and I just want you to use this little code to embed this pricing page template in your code. How can I generate this “script and stripe-pricing-table tag”? I don't know if I’m clear or not I tried my best to explain it.
7 Replies
JOY
JOY2y ago
Here's the StackOverflow link for the same question
JOY
JOY2y ago
Stack Overflow
I want to copy this STRIPE’s embeddable pricing table feature
FOR INFO: There is a stripe embeddable pricing table feature In it, First, we finish designing the pricing table. Designing pricing table Then, It spits out a code (a script tag), that we can embed...
Jochem
Jochem2y ago
Web Components | MDN
Web Components is a suite of different technologies allowing you to create reusable custom elements — with their functionality encapsulated away from the rest of your code — and utilize them in your web apps.
Jochem
Jochem2y ago
that's what Stripe is using at least. It lets you create custom HTML elements with Javascript
JOY
JOY2y ago
Do that stripe's custom elements retrieve data from stripe's server? That's how it works?
Jochem
Jochem2y ago
Likely yeah, you can look at the Javascript it fetches and see if there's any calls to fetch
JOY
JOY2y ago
@jochemm thank you for your help, you are a good guy