I want add mangopay payment system for received money from users.
Where need I add configuration in project?
MangoPay.configure do |c|
c.preproduction = true
c.client_id = 'YOUR_CLIENT_ID'
c.client_passphrase = 'YOUR_CLIENT_PASSWORD'
end
And maybe can who show examples project ruby on rails with using mangopay?
Thank for advance
Generally, a place to store library configurations would be in the initializer.
You should create a config/initializers/mangopay.rb
and dump your configuration there.