Search code examples
ruby-on-railsmangopay

Where store configuration mangopay?


I want add mangopay payment system for received money from users.

Where need I add configuration in project?

configuration

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


Solution

  • 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.