jeudi 8 mars 2018

Ember stripe's elements implementaion

I am totally new in front end and ember. i am trying to implement stripe's elements in to my ember application. i have been digging around internet with add on, however it dont seem like there is any stable ember add on for that.

so, i would need to back to the basic. implement it from the stripe original lib.

The stripe given example, is using CDN to hook the JavaScript lib into the HTML. However, to use the javacript in controller, we need to import it controller. For example, // Create a Stripe client. var stripe = Stripe('pk_test_ggwem1grAd10e0PJnt0eQy9S');

how can i use this on my controller, or component? how they wrap this in to add on and make it to a services?

please, point me to the right direction. Thanks for helping.




Aucun commentaire:

Enregistrer un commentaire