Page MenuHomePhabricator

Combowiki: Add in country + payment methods specific fields
Closed, ResolvedPublic4 Estimated Story Points

Description

We have some fields that only appear for certain countries in country_fields.yaml

We added them in T438904: Combowiki: add optional to phone text for adding the optional text to the phone number field for the smsOptin variant

For MVP:
US needs street_address and postal_code and for empolyer to appear
IE and GB need opt_in, which now refers to the vue component we have. I think we can just tie into this config for this and not have to make a new top level one

Event Timeline

This task is more complex than expected because the current Donate payment pages do not display these fields for all payment methods. The legacy code allows the payment method to override country_fields.yaml. As a result, the current getFormFields() function is too simplistic because it fails to account for the specific rules defined in payment_methods.yaml.
Making the US address fields required for all US donors on page load—similar to how the employer field is handled (though that one is optional)—would create unnecessary friction for payment methods that do not actually require these fields and currently suppress them.

Tomorrow morning I'll work into how to best integrate the validation overrides for each payment method configuration.

Tomorrow morning I'll work on a solution that fixes this and takes into account payment_methods.yaml validation blocks (aka overrides of default country_fields.yaml)

Laurabarluzzi renamed this task from Combowiki: Add in country specific fields to Combowiki: Add in country + payment methods specific fields.Oct 9 2026, 2:09 PM

Change #1353438 had a related patch set uploaded (by Laurabarluzzi; author: Laurabarluzzi):

[mediawiki/extensions/DonationInterface@master] ComboWiki: show donor fields per country and payment method configurations

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

Change #1353438 merged by jenkins-bot:

[mediawiki/extensions/DonationInterface@master] ComboWiki: show donor fields per country and payment method configurations

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

Laurabarluzzi set the point value for this task to 4.
Laurabarluzzi set Final Story Points to 4.