richnologies / ngx-stripe

Angular 6+ wrapper for StripeJS
MIT License
219 stars 77 forks source link

How do I access all element component with version v7-lts / 7.5.x+? #112

Closed saascharge closed 3 years ago

saascharge commented 4 years ago

I am stuck with version v7-lts / 7.5.x+ at the moment.

I need to modify the layout the payment page and essentially need to achieve something like this: https://stripe.dev/elements-examples

So I need to access the mount & registerElements methods of the element. How can I do that?

It seems to me that , would be ideal but they must only be available in a later version?

richnologies commented 4 years ago

Hello @saascharge,

Actually this scenario was the first supported by the library and specific components for the different payments method has been added after. But in the order to provide the simpler possible experience those components get more popular.

I create a new section in the docs explaining how to manually register and mount elements: https://richnologies.gitbook.io/ngx-stripe/core-concepts/manually-mount-your-element

Please let me know if these works for you. Maybe we can give it more relevance in the docs.

Thanks for the feedback 👍

R

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.