Gateway registry
Every gateway is a record with its own settings, and any module that takes payment asks the registry for the one you chose.
- A Payment Gateway record for each connected gateway
- One settings document per gateway, with secrets stored as protected passwords
- Sandbox or test mode where the gateway offers one
- A currency check before a customer is sent to pay