Page MenuHomePhabricator

Gravy fallback to USD for disabled currencies
Closed, ResolvedPublic

Description

The currencies sent over by Gravy in the Gravy's GetPaymentServiceDefinition API request is always the full list supported currencies for the Payment method and not those enabled by us in the Gravy console.

Currently, this API helps to fallback to USD for currencies that are not supported by Gravy PayPal, here's an example.

I've asked Gravy for an endpoint that fetches the list of enabled currencies for the payment service so we can fall back to USD for currencies that are disabled on Gravy.

Event Timeline

Change #1251518 had a related patch set uploaded (by Damilare Adedoyin; author: Damilare Adedoyin):

[wikimedia/fundraising/SmashPig@master] Add the Gravy getPaymentServicesForMethod API to fetch the enabled currencies/countries on a payment method.

https://gerrit.wikimedia.org/r/1251518

Change #1251522 had a related patch set uploaded (by Damilare Adedoyin; author: Damilare Adedoyin):

[mediawiki/extensions/DonationInterface@master] Fetch enabled countries on Gravy to determine which currencies are unsupported and requires fallback

https://gerrit.wikimedia.org/r/1251522

AKanji-WMF triaged this task as Medium priority.Mar 16 2026, 8:22 PM

Change #1251518 merged by Ejegg:

[wikimedia/fundraising/SmashPig@master] Add the Gravy getPaymentServicesForMethod API to fetch the enabled currencies/countries on a payment method.

https://gerrit.wikimedia.org/r/1251518

Change #1251522 merged by jenkins-bot:

[mediawiki/extensions/DonationInterface@master] Fetch enabled countries on Gravy to determine which currencies are unsupported and requires fallback

https://gerrit.wikimedia.org/r/1251522