Page MenuHomePhabricator

Paypal Orphan Slayer Missing PayerID
Closed, ResolvedPublic

Description

I saw in the logs today that the missing PayerID is causing an error to be returned. This needs more investigation.

Event Timeline

@DStrine let's prioritize this - it looks like we can fix this without too much work, and it might let us complete a bunch more dangling PayPal transactions.

Tech details:
When the GetExpressCheckoutDetails API call comes back with CHECKOUTSTATUS=PaymentActionNotInitiated, that means the donor never did the payment on the paypal side, and we should just stop there and delete the pending row. Instead, we're barrelling through and calling DoExpressCheckoutPayment without the proper parameters. This wastes about a second per dangling transaction. Looks like 10x as many pending PayPal rows are NotInitiated as are resolvable, so these seconds will add up.

DStrine triaged this task as Medium priority.Dec 8 2021, 5:02 PM

Change 747648 had a related patch set uploaded (by Ejegg; author: Ejegg):

[mediawiki/extensions/DonationInterface@master] Stop processing when PaymentActionNotInitiated

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

Change 747648 merged by jenkins-bot:

[mediawiki/extensions/DonationInterface@master] Stop processing when PaymentActionNotInitiated

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

DStrine set Final Story Points to 2.