Page MenuHomePhabricator

Successful Adyen transactions not making it into CiviCRM
Closed, ResolvedPublic

Description

Donor Relations reported a couple of successful Adyen transactions that haven't reached CiviCRM.

There's a related task here T344472, but that is for manually-settled transactions. In this case, the transactions are not manually settled, so the queue2civicrm consumer should import them, but it seems they haven't been. Let's figure out why!

Adyen payment made 48hrs ago still not in Civi:
191327632.1 | #1346627 | cid=47148979 | France
Adyen payment made 12hrs ago still not in Civi:
191434363.1 | #1347769 | no cid | The Netherlands (the donor received an error message)

Event Timeline

Adding one more example where several donations were rejected, however, a single larger donation made on the same day was automatically settled and it is not showing up in Civi! Adyen transaction# 191467831.1; CID 57537617; ticket# 1348185.

191327632 is really interesting.

It looks like the payment was accepted by Adyen after the donor was redirected to complete 3D Secure, but then we failed the donation after the donor arrived back on our server due to the request tripping our fraud filters that run after the payment request is sent to the gateway.

This shouldn't really happen, so I'll dig into what went wrong here.

Okay, after more digging, it appears that the mixup surrounding 191327632 is due to Adyen currently auto-capturing credit card transactions. This is not how we usually do things. Usually, we authorize the payment, run fraud checks and then capture the payment if it passes the fraud checks. However, in this case, Adyen auto-captured the payment before it could run the fraud filters. The donor was still served an error page, but the payment was actually captured.

We're gonna email Adyen to ask them to stop auto-capturing cc transactions so this doesn't happen again. This issue also highlights that we might need to rethink our fraud scoring for this scenario.

I'm now looking at why the nightly audit process did not import the completed transaction into CiviCRM even though I can see the trxn in the audit reports .

Looks like same issue with the audits, for ones that auto settle the Modification Merchant Reference is <auto> instead of an actual transaction ID that the audit file is looking for.

Another donor has reached out asking where their receipt is. Payment not in Civi.

191531076.1 | cid=59246834

I had this audit file looking into other things so checked 191531076.1. It was caught in the auto capture issue mentioned here but did come in on the audit, but then didn't make it to civi due to :T339182: Audit: create missing contribution_tracking entries instead of skipping importing them

Thanks @jgleeson and @Cstone!

I can see the first two now in Civi. But that latest one is still not there - to confirm, this one did process but is just not in Civi, so we can confirm to the donor that the donation was successful, correct Christine? Thanks!

@krobinson It did process but just didn't make it to civi due to an issue with the audit. I just manually imported 191531076 so they are in civi now and got a thank you email.

Hey @Cstone! Another donor where their donation from 09/08 is not in Civi. Could you manually push 191734228.1 for CID 7960539 into Civi? Thanks! :)

XenoRyet set Final Story Points to 4.

Reopening this one as a new example came in.
Can we please push through the transaction @AMJohnson flagged yesterday? Thanks!

Flagging another transaction that is showing as settled in Adyen but is not in Civi.

Zendesk ticket # 1351694 for donor CID 31153043

The donor accidentally donated twice but only one of the settled donations is showing up in Civi as shown in the image below:

screenshot 1 09122023.png (1,405×170 px, 34 KB)

However, two donations were settled in Adyen (one was rejected) as shown below:

screenshot 2 09122023.png (1,196×212 px, 51 KB)

Hey @krobinson and @AMJohnson. I'll see if I can work out what ninja hacks @Cstone was using to pull in these stray transactions and let you know when it's done. Thanks for your patience.

We're in discussion at the moment on how to fix the ongoing Adyen missing transaction underlying issue, and we think we've got a good fix, so hopefully, in the future, fingers crossed, we won't run into this again.

Hey @Cstone! Another donor where their donation from 09/08 is not in Civi. Could you manually push 191734228.1 for CID 7960539 into Civi? Thanks! :)

This trxn is now imported into CiviCRM

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

[wikimedia/fundraising/SmashPig@master] Add manualCapture flag to Adyen auth calls

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

Here's another CID 6510295 with a manually settled Adyen transaction from September 19th, that still not showing up in Civi. Adyen ref# NDNGMVGZL3PNT872, Adyen payment ref# 192515521.1. Can someone push this one through at some point? Thanks, guys!

Reopening this as we have another one:

Adyen payment ref# 192862907.1 PSP ref: WSG6M772T58KGX62 / Zendesk #1365358 was manually settled on 09/26 and isn't in Civi yet.

Could somebody push this through? Thanks!

Another one too:

Adyen payment ref 193222306.1 / PSP ref FS768TKNFZT3MKG2 / Zendesk #1368543 manually settled on 10/05 and not in Civi yet.

Can somebody push it through, please? Thanks!

I just checked and the one mentioned previously - #192862907.1, settled on 09/26 also is not yet in Civi.

Could they both be pushed through? Thanks!

Sharing one more, Adyen transaction 193358067.1 - settled on 10/4 still not in Civi. Ty!

Change 959247 merged by jenkins-bot:

[wikimedia/fundraising/SmashPig@master] Add manualCapture flag to Adyen auth calls

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

AKanji-WMF subscribed.

Based on a call with DR this morning, seems like this is still an issue - should I open a new task?

Based on a call with DR this morning, seems like this is still an issue - should I open a new task?

Let's look at some specific transactions and see why they didn't make it in. If they're erroneously auto-captured, then the patch merged just yesterday (and not yet deployed) should fix that.

If it's a different reason, we should make a new ticket.

Did DR give any specific transaction IDs?

Hi @MBeat33 do you have any information around where this still might be happening?

Thanks @AKanji-WMF I'm checking with the DR team for any examples newer than Monday's additions of 192862907.1, 193222306.1,
192862907.1, and 193358067.1

I can confirm that those 4 ^^ are the most recent - we'll keep an eye out for any new ones.

There is one more:

ZD: 1373896 / CID 11835994 / 193755774.1 Settled on 10/12

AKanji-WMF moved this task from Triage to Chaos Crew Backlog on the Fundraising-Backlog board.
Dwisehaupt moved this task from Chaos Crew Backlog to Triage on the Fundraising-Backlog board.
Dwisehaupt subscribed.

Moving to chaos crew backlog and main board triage since it was an open task in a hidden column.

Moving to done as this hasn't happened in a while

I think you spoke too soon @Damilare !

Adyen Z8D3QMWQKWN25M25 was settled on 12/07 and is not in Civi yet.
Adyen LTBPDCGT3T7WTM42 was settled on 12/08 and is not in Civi yet.

I understood these should take 24 hours, as the audit file is daily, so in theory they should be there by now.

Ahh thanks @krobinson Would look into those transactions, moving this phab back to "In progress".

I also found a refund from 12/7 that's not in Civi, 199183456.1 aka ADYEN TSXXF3XC2GHSD272 from cid=62012942

@krobinson looks like those transactions have been imported through the audit imports last night. Looking to identify the cause for the delay in the transaction been sent in the audit.

@MBeat33 the transaction was imported yesterday. It appears Adyen isn't regular with the time by which transactions make it into the Audit file as the audit shows the transaction was sent for refund on 12/7 and the refund status was booked on 12/11.

I believe this ticket can be moved to done as the transactions do get to Civi, there's just a bit of delay in when they make it to the Audit file sent by Adyen. We also have another phab tracking issues with audit T340066

XenoRyet changed Final Story Points from 4 to 2.