Page MenuHomePhabricator

Deal better with Amazon auth/capture timing out
Closed, ResolvedPublic2 Estimated Story Points

Description

See the saga of contribution_tracking_id 56015715:

On the payments cluster, the auth&capture times out: TransactionTimedOut.
We send a payment_init message with 'failed' payments_final_status, and the payments_init consumer deletes the pending db entry.

Apparently, that DOESN'T mean it's been failed / canceled.

We ALSO get a listener notification that says the auth is declined, for reason 'TransactionTimedOut'. That seems to be misleading, because the next day we get another listener notification saying the capture has succeeded.

We try to record the successful capture, and that sends a failmail because the donor details are gone from the pending db.

We should either be optimistic (send the payments_init message with 'pending' payments_final_status while showing the donor the Thank You page) or make sure the order is canceled / closed.

Event Timeline

Ejegg created this task.Dec 20 2017, 10:41 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptDec 20 2017, 10:41 PM
Ejegg updated the task description. (Show Details)Dec 20 2017, 10:46 PM

Change 399832 had a related patch set uploaded (by Ejegg; owner: Ejegg):
[mediawiki/extensions/DonationInterface@master] Amazon: show TY page on TransactionTimedOut

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

Change 399841 had a related patch set uploaded (by Ejegg; owner: Ejegg):
[wikimedia/fundraising/SmashPig@master] WIP Amazon: automatic retry on TransactionTimedOut

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

Change 399832 merged by jenkins-bot:
[mediawiki/extensions/DonationInterface@master] Amazon: show TY page on TransactionTimedOut

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

Change 399841 merged by jenkins-bot:
[wikimedia/fundraising/SmashPig@master] Amazon: automatic retry on TransactionTimedOut

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

Change 402368 had a related patch set uploaded (by Ejegg; owner: Ejegg):
[wikimedia/fundraising/SmashPig@master] Add missing action to Amazon config

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

Change 402368 merged by jenkins-bot:
[wikimedia/fundraising/SmashPig@master] Add missing action to Amazon config

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

Ejegg closed this task as Resolved.Jan 16 2018, 9:16 PM
Ejegg claimed this task.
Ejegg triaged this task as Medium priority.
Ejegg set the point value for this task to 2.