mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +00:00
Configure PlaidSandbox to use sandbox environment regardless of Rails config and set test environment variables for Plaid. Temporarily disable AutoSync functionality in tests.
This commit is contained in:
@@ -44,6 +44,9 @@ class Provider::PlaidSandbox < Provider::Plaid
|
||||
Rails.application.config.plaid
|
||||
)
|
||||
|
||||
# Force sandbox environment for PlaidSandbox regardless of Rails config
|
||||
api_client.config.server_index = Plaid::Configuration::Environment["sandbox"]
|
||||
|
||||
Plaid::PlaidApi.new(api_client)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user