Page MenuHomePhabricator

Handle Third-Party Donation Emails as Secondary with Source Tracking
Open, Needs TriagePublic4 Estimated Story Points

Description

When a new/recur donation received from a third-party provider (Apple, Google, Amazon, Venmo, or PayPal) and is mapped to the same CID, do not replace the existing primary email.

Instead, if the email is not already the primary one, add it as a secondary email and record the source type (Apple, Google, Amazon, Venmo, PayPal), following the same approach used for phone source tracking.

The current behavior uses the most recent donation email as the primary email; this update ensures primary emails are preserved while still capturing third-party emails.

https://wikimedia.slack.com/archives/C045WH0QYS2/p1768811632283859 here Kristie for a similar concern.

Event Timeline

AnnWF moved this task from Triage to Current Sprint on the Fundraising-Backlog board.
AnnWF moved this task from Backlog to Doing on the Fundraising Sprint: ARMchair board.

After discussion, we've decided to:

  1. Add location types for each of Apple, Google, Amazon, Venmo, and PayPal.
  2. T416052: Change location type for emails for existing donors using Apple, Google, Amazon, Venmo or PayPal
  3. When we receive an email from one of the above and we want to change it on the contact record, only change the email of that location type (don't change which email is primary). If the contact doesn't have an email of that type (because our backfill above didn't cover this contact), add as a new email of the appropriate location type and make it primary (so the existing email is made secondary).
  4. T416056: Allow Paypal donors to update their email in email prefs center
  5. Change matching rules so we only match for Venmo on username instead of username and primary email and any other changes needed (Paypal?)

Change #1237533 had a related patch set uploaded (by Wfan; author: Wfan):

[wikimedia/fundraising/crm@master] Add more location type for more email type

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

Change #1237533 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Add more location type for more email type

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

Damilare set the point value for this task to 4.Wed, Feb 11, 5:30 PM