You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Therefore one option to achieve what you want would be to use bower-rails in your Rails project and add the Card Registration Kit as a bower dependency.
In Rails projects I usually store the card-registration-kit in /vendor/assets/javascript. I am not changing the implementation of the payment processing that often to need bower or a gem.
Hi @tildedash, thanks for this feedback and I'm sorry for the delay getting back to you. I totally agree with @javiercr - a bower package would be the best forward for the moment :-)
Hello,
I am testing your solution in a RoR project and I wonder why you did not include the card registration JS kit (at least the minified one) in the gem.
I had to host it myself in the RoR project so if the JS kit has any changes, I will still get an obsolete one in my project.
Another solution is to wrap the JS kit in another gem (like backbone : https://github.com/codebrew/backbone-rails ).
Finally, providing a minified version hosted by Mangopay itself (like Stripe do: https://js.stripe.com/v2/) is a good solution too.
Regards
The text was updated successfully, but these errors were encountered: