Where store configuration mangopay?

122 Views Asked by At

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

1

There are 1 best solutions below

1
oreoluwa On BEST ANSWER

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.