When a country is selected, getCurrencies should return only the currencies supported by that gateway in that country. It also doesn't need to be a static function.
Description
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | None | T117466 Q3 GOALS! (January-March) Keep at top of Q3 column | |||
Resolved | None | T102143 [epic] Processing via Astropay for Spanish-speaking LATAM countries | |||
Resolved | Ejegg | T124327 GatewayAdapter::getCurrencies should return currencies supported for the donor's country |
Event Timeline
I like it. There's some potential for generalization, too, if we have some way of querying methods / gateways / currencies, given any known variables (method, country).
Change 271569 had a related patch set uploaded (by Ejegg):
WIP filter currencies by country
Change 271689 had a related patch set uploaded (by Ejegg):
Don't show single-value currency dropdown
Change 271703 had a related patch set uploaded (by Ejegg):
Allow a different fallback currency for each country
I would love to catch up on the design for this, there are a lot of really useful-seeming patches, but I don't quite get how the pieces fit together. Building for the AstroPay case might be a little bit over-specific. @Ejegg, Tomorrow would be a good time to chat actually because I can play a very convincing person-on-the-street who knows nothing about what's going on ;-)
Change 271703 merged by jenkins-bot:
Allow a different fallback currency for each country