The MerchantReference numbers for Connect are ct_id.sequence, so we can just increment the sequence and try again.
Description
Details
Event Timeline
Change 452871 had a related patch set uploaded (by Ejegg; owner: Ejegg):
[wikimedia/fundraising/crm@master] SmashPig payment processor: expose API codes
Change 453479 had a related patch set uploaded (by Ejegg; owner: Ejegg):
[wikimedia/fundraising/crm@master] WIP increment merchant ref and retry payment
Change 456517 had a related patch set uploaded (by Ejegg; owner: Ejegg):
[wikimedia/fundraising/crm@master] WIP: Opt-in queue consumer
Change 452871 merged by jenkins-bot:
[wikimedia/fundraising/crm@master] SmashPig payment processor: expose API codes
Change 453479 merged by jenkins-bot:
[wikimedia/fundraising/crm@master] Increment merchant ref and retry payment
Still TODO: find things we canceled for this reason and uncancel them so we can retry
Change 458594 had a related patch set uploaded (by Ejegg; owner: Ejegg):
[wikimedia/fundraising/crm@master] Un-cancel Ingenico recurring with duplicate merchant ref
I ran updb on dev and it didn't seem to fix them, but running the SQL directly did.
UPDATE civicrm_contribution_recur cr
INNER JOIN civicrm_contribution c ON c.contribution_recur_id = cr.id
INNER JOIN dev_drupal.contribution_tracking ct ON ct.contribution_id = c.id
SET cr.next_sched_contribution_date = DATE_ADD(
cr.start_date, INTERVAL 2 MONTH
),
cr.failure_count = 0,
cr.cancel_date = NULL,
cr.contribution_status_id = 1
WHERE ct.id IN (57990533, 57991947, 57995299, 57995622, 57997242, 58006880, 58007549, 58112187, 58113086, 58113202, 58117262, 58215150, 58218626, 58221282, 58223014, 58223512, 58228479, 58229787, 58232269, 58234072, 58235105, 58235341, 58239642, 58242471, 58243295, 58243359, 58246799, 58247903)
AND cr.contribution_status_id = 3;
Change 458594 merged by jenkins-bot:
[wikimedia/fundraising/crm@master] Un-cancel Ingenico recurring with duplicate merchant ref
Change 458941 had a related patch set uploaded (by Ejegg; owner: Ejegg):
[wikimedia/fundraising/SmashPig@master] Ingenico: Don't send failmail on http 402 or 409
Change 458941 merged by jenkins-bot:
[wikimedia/fundraising/SmashPig@master] Ingenico: Don't send failmail on http 402 or 409