mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
Initial pass at Plaid EU (#1555)
* Initial pass at Plaid EU * Add EU support to Plaid Items * Lint * Temp fix for rubocop isseus * Merge cleanup * Pass in region and get tests passing * Use absolute path for translation --------- Signed-off-by: Josh Pigford <josh@joshpigford.com>
This commit is contained in:
parent
41873de11d
commit
4bf72506d5
15 changed files with 81 additions and 21 deletions
|
@ -1,5 +1,6 @@
|
|||
Rails.application.configure do
|
||||
config.plaid = nil
|
||||
config.plaid_eu = nil
|
||||
|
||||
if ENV["PLAID_CLIENT_ID"].present? && ENV["PLAID_SECRET"].present?
|
||||
config.plaid = Plaid::Configuration.new
|
||||
|
@ -7,4 +8,11 @@ Rails.application.configure do
|
|||
config.plaid.api_key["PLAID-CLIENT-ID"] = ENV["PLAID_CLIENT_ID"]
|
||||
config.plaid.api_key["PLAID-SECRET"] = ENV["PLAID_SECRET"]
|
||||
end
|
||||
|
||||
if ENV["PLAID_EU_CLIENT_ID"].present? && ENV["PLAID_EU_SECRET"].present?
|
||||
config.plaid_eu = Plaid::Configuration.new
|
||||
config.plaid_eu.server_index = Plaid::Configuration::Environment[ENV["PLAID_ENV"] || "sandbox"]
|
||||
config.plaid_eu.api_key["PLAID-CLIENT-ID"] = ENV["PLAID_EU_CLIENT_ID"]
|
||||
config.plaid_eu.api_key["PLAID-SECRET"] = ENV["PLAID_EU_SECRET"]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue