Page MenuHomePhabricator

Update SmashPig recurring processor to handle first payments
Closed, ResolvedPublic

Description

The SmashPig recurring payment processor (used to charge Ingenico Connect tokenized recurring payments) can currently only handle payments that are the second or later in a series.

Donors who give a one-time payment then start a recurring payment for a different amount will get a recurring record unconnected to any existing payment.

Update the code in CRM_Core_Payment_SmashPigRecurringProcessor to work without a previous payment in the same recurring series.

We might have to get the previous payment from the gateway txn id as we're not gonna have the usual recur_id.

Event Timeline

Change 525098 had a related patch set uploaded (by Jgleeson; owner: Jgleeson):
[wikimedia/fundraising/crm@master] WIP: Update SmashPig recurring processor to handle first payments

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

Change 525098 merged by jenkins-bot:
[wikimedia/fundraising/crm@master] Update SmashPig recurring processor to handle making first payments for upsell subscriptions.

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