Page MenuHomePhabricator

Check Braintree venmo refunds and disputes from audit
Open, Needs TriagePublic

Description

So we are getting the files:

settlement_batch_report_refund_2024-09-26.json
settlement_batch_report_dispute_2024-09-04.json

  • I think we are processing the refunds, confirm that
  • I don't think we are doing anything for the disputes/chargebacks, if so add that

Event Timeline

Change #1217846 had a related patch set uploaded (by Eileen; author: Eileen):

[wikimedia/fundraising/SmashPig@master] Output transactions in disputes braintree file

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

Change #1217846 merged by jenkins-bot:

[wikimedia/fundraising/SmashPig@master] Output transactions in disputes braintree file

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

OK - so the raw now gives better info

{
  "cursor": "WkdsemNIVjBaVjh6YWpocU1uZDJOWE42ZVhkdE16bGo7MjAyNS0xMi0xNlQyMDoyMTo1M1o",
  "node": {
    "id": "ZGlzcHV0ZV8zajhqMnd2NXN6eXdtMzlj",
    "legacyId": "3j8j2wv5szywm39c",
    "type": "CHARGEBACK",
    "caseNumber": "xxxxxx",
    "createdAt": "2025-12-16T20:21:53.000000Z",
    "referenceNumber": null,
    "receivedDate": "2025-12-16",
    "status": "OPEN",
    "transaction": {
      "purchaseOrderNumber": null,
      "id": "dHJhbnNhY3Rpb25fZzEwem04NmI",
      "orderId": "240578023.1",
      "createdAt": "2025-11-25T18:11:09.000000Z",
      "paymentMethodSnapshot": {
        "username": "xxxxxx",
        "venmoUserId": "xxxxxx"
      }
    },
    "amountDisputed": {
      "value": "50.00",
      "currencyCode": "USD"
    },
    "amountWon": {
      "value": "0.00",
      "currencyCode": "USD"
    }
  }
}
,
{
  "cursor": "WkdsemNIVjBaVjlqZVdNMWQyWjBhbXQwY2pocU5IZG07MjAyNS0xMi0xNVQyMDoyNjoyNVo",
  "node": {
    "id": "ZGlzcHV0ZV9jeWM1d2Z0amt0cjhqNHdm",
    "legacyId": "cyc5wftjktr8j4wf",
    "type": "CHARGEBACK",
    "caseNumber": "yyy",
    "createdAt": "2025-12-15T20:26:25.000000Z",
    "referenceNumber": null,
    "receivedDate": "2025-12-15",
    "status": "ACCEPTED",
    "transaction": {
      "purchaseOrderNumber": null,
      "id": "dHJhbnNhY3Rpb25fbWVrYzgwc3Q",
      "orderId": "241838567.1",
      "createdAt": "2025-12-09T20:56:47.000000Z",
      "paymentMethodSnapshot": {
        "username": "XYZ",
        "venmoUserId": "ZZZ"
      }
    },
    "amountDisputed": {
      "value": "68.70",
      "currencyCode": "USD"
    },
    "amountWon": {
      "value": "0.00",
      "currencyCode": "USD"
    }
  }
}

But most of it didn't bubble up

[
  {
    "contribution_tracking_id": "",
    "invoice_id": null,
    "payment_method": "venmo",
    "gross": "0.00",
    "currency": "USD",
    "email": null,
    "phone": null,
    "first_name": "LMN",
    "last_name": null,
    "gateway_txn_id": "ZGlzcHV0ZV8zajhqMnd2NXN6eXdtMzlj",
    "date": "2025-12-16",
    "type": "chargeback"
  },
  {
    "contribution_tracking_id": "",
    "invoice_id": null,
    "payment_method": "venmo",
    "gross": "0.00",
    "currency": "USD",
    "email": null,
    "phone": null,
    "first_name": "QRF",
    "last_name": null,
    "gateway_txn_id": "ZGlzcHV0ZV9jeWM1d2Z0amt0cjhqNHdm",
    "date": "2025-12-15",
    "type": "chargeback"
  },
]

Note that one is Open and one is Accepted - we probably want to filter out the ones that aren't accepted? Not sure the range of statuses

Change #1220404 had a related patch set uploaded (by Eileen; author: Eileen):

[wikimedia/fundraising/SmashPig@master] Add ability to output raw files to Braintree maintenance, add statusHistory

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

Due to how they settle, looks like we don't need fees for now

Change #1220407 had a related patch set uploaded (by Eileen; author: Eileen):

[wikimedia/fundraising/SmashPig@master] Add ability to pass in alternate date-types

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

Change #1220404 merged by jenkins-bot:

[wikimedia/fundraising/SmashPig@master] Add ability to output raw files to Braintree maintenance, add statusHistory

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

Change #1220407 merged by jenkins-bot:

[wikimedia/fundraising/SmashPig@master] Add ability to pass in alternate date-types

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

Change #1220649 had a related patch set uploaded (by Eileen; author: Eileen):

[wikimedia/fundraising/SmashPig@master] Allow start & end date instead of hours as options

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

Change #1220660 had a related patch set uploaded (by Eileen; author: Eileen):

[wikimedia/fundraising/SmashPig@master] Useful additional fields plus graphQL fix

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

Change #1220662 had a related patch set uploaded (by Eileen; author: Eileen):

[wikimedia/fundraising/SmashPig@master] Add handling for raw files (if they exist)

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

Change #1220660 abandoned by Eileen:

[wikimedia/fundraising/SmashPig@master] Useful additional fields plus graphQL fix

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

Change #1222527 had a related patch set uploaded (by Eileen; author: Eileen):

[wikimedia/fundraising/SmashPig@master] Add handling for raw refund file

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

Change #1222530 had a related patch set uploaded (by Eileen; author: Eileen):

[wikimedia/fundraising/SmashPig@master] Add flag to output to single file

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

Change #1220649 merged by jenkins-bot:

[wikimedia/fundraising/SmashPig@master] Allow start & end date instead of hours as options

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

Change #1220662 merged by jenkins-bot:

[wikimedia/fundraising/SmashPig@master] Add handling for raw files (if they exist)

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

Change #1222527 merged by jenkins-bot:

[wikimedia/fundraising/SmashPig@master] Add handling for raw refund file

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

Change #1222530 merged by jenkins-bot:

[wikimedia/fundraising/SmashPig@master] Add flag to output to single file

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