Page MenuHomePhabricator

Implement recurring logic in Amazon gateway adapter
Closed, ResolvedPublic2 Estimated Story Points

Description

Documentation here: https://payments.amazon.com/documentation/automatic/201752090#201752090

When an API post is made with the billingAgreementID parameter and recurring is true, use the PwA SDK to make these calls: SetBillingAgreementDetails, ConfirmBillingAgreement, GetBillingAgreementDetails, and AuthorizeOnBillingAgreement. Handle errors the same way errors are handled with one time payments.
Send the donation to the queue as recurring.

Event Timeline

Ejegg raised the priority of this task from to Needs Triage.
Ejegg updated the task description. (Show Details)
Ejegg added subscribers: Aklapper, Ejegg.

Change 243360 had a related patch set uploaded (by Ejegg):
WIP Back-end logic for Amazon recurring donations

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

The patches look good so far! *ahemming* a bit about sprintliness, though...

@Ejegg we had this task already to deal with this (currently "unscheduled") we should decide if this is a priority, but also note that this one has some blocking tasks: T107391

Yeah, I cheated a bit here. I needed to figure out what I could assume about recurring donation gateway IDs in order to decide how to handle importing refunds and chargebacks from audit files.

Makes sense! Thanks for the lookahead algorithm :)

Change 243360 merged by jenkins-bot:
Back-end logic for Amazon recurring donations

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