Reading Stripe docs regarding the embeddable Pricing tables feature - I have constructed a pricing table following the steps as described.
This results in a code snippet that can be used to embed the hosted pricing table on one's own website/application.
Example snippet;
<script async src="https://js.stripe.com/v3/pricing-table.js"></script>
<stripe-pricing-table pricing-table-id="xxx_xxxxxxxxxx"
publishable-key="pk_test_xxxxxxxxxx">
</stripe-pricing-table>
The examples in the docs relating to how to embed this snippet give only HTML and React examples.
I'd like to know how to achieve the same result in angular.
I have attempted to use Stipe Elements to build an element to hold the pricing table, but Elements does not seem to have a component for the new Pricing tables.
Yes at the moment Stripe Docs has no information for Angular. Here is my solution suggestion with dynamic attribute placement from component to html view.
1. index.html
2) in xyz.module.ts
3. in xyz.component.ts
4. in xyz.componet.html
If you don't need dynamic publishable-key and pricing-table-id skip point 3 and hardcode point 4, as here:
xyz.componet.html