-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Milestone
Description
The certain requirements which are common to all the gateways e.g. currency
can be kept in the global config
.
These should be overridden if something else is set by the gateway.
Example
Global configuration
config :gringotts, :global_config,
mode: :test
default_currency: 'USD'
Gateway specific configuration
# Keep the `key` name same as the adapter name
config :gringotts, Gringotts.Gateways.Stripe,
adapter: Gringotts.Gateways.Stripe,
api_key: "sk_test_vIX41hayC0BKrPWQerLuOMld",
default_currency: "EUR"
Updated Checks and modifications needed.(25th Jan)
- All the gateways require changes for this feature; sometimes there is just one url for both test and live, some have just one.
- Add this in the main documentation and on the getting started guide.
Updates(25th Jan):
We are just adding test
mode in the global_config
.