I've integrated Paymill successfully in my ROR4 App using their Paymill Bridge. All works fine in development mode, but as soon as I deploy it to production, it returns me the "NO TOKEN FOUND".
This used to happen in development mode because it was not loading the transactions.js properly due to turbolinks, I have fixed it since.
But cannot make it work in production
Thanks! All the Best
since the introduction of the assets pipeline, rails uses gem uglier to compress (remove whitespaces, shorten function and variable names, etc.) the custom JavaScript. This is done by the command rake assets:precompile, which is executed on each deploy to heroku.
I think you should take a look at uglifier and try to overwrite the default settings. My first guess is that you have to set :unused to false. Because the PAYMILL_PUBLIC_KEY variable is used by PAYMILL bridge and not by your scripts.
You can test this on your local machine by calling: rake assets:precompile and check the generated JavaScript.