Page MenuHomePhabricator

Figure out best way to get Braintree audit files and then get them
Closed, ResolvedPublic

Description

Looks like we can either get it through GraphQL or through their API:

GraphQL endpoint: https://graphql.braintreepayments.com/reference/#object--transactionlevelfeereport (get report url, need verify with braintree see if we are qualify with this report type)
Graphql for Search : https://graphql.braintreepayments.com/reference/#object--search (get transactions)

API way: https://developer.paypal.com/braintree/docs/guides/reports/settlement-batch-summaries

Try and get a report from GraphQL and see if its what we need

Event Timeline

Cstone updated the task description. (Show Details)

Change 808008 had a related patch set uploaded (by Wfan; author: Wfan):

[wikimedia/fundraising/SmashPig@master] wip: Add report or search for transactions (report is limited to paymentLevel)

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

@Ejegg Since we are not getting any payment level report, as we can see here also https://sandbox.braintreegateway.com/merchants/ms9fqmw9gxrm2bp3/transaction_level_fee_reports/run?utf8=%E2%9C%93&report_criteria%5Bmerchant_account_token%5D=wikimediafoundation&report_criteria%5Bstart_date%5D=06%2F01%2F2022&report_criteria%5Bend_date%5D=06%2F30%2F2022&commit=Run+Transaction-Level+Fee+Report (was called transaction level fee report)

and that make me wonder if we are not qualified with this report as https://developer.paypal.com/braintree/articles/control-panel/reporting/transaction-level-fee-report indicated if we are not using IC+ pricing models nor Flat rate and blended pricing models. can also do the testing with php PaymentProviders/Braintree/Maintenance/GetReport.php. then I find another way to get the transaction list which we can use php PaymentProviders/Braintree/Maintenance/TestSearch.php for yesterday's transactions. need some opinion if none of those is acceptable, then we can switch to the SDK approach~

AnnWF updated the task description. (Show Details)
AnnWF updated the task description. (Show Details)

Change 808008 abandoned by Wfan:

[wikimedia/fundraising/SmashPig@master] Add report or search result for transactions

Reason:

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

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

[wikimedia/fundraising/SmashPig@master] Add report or search result for transactions

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

Change 813655 merged by jenkins-bot:

[wikimedia/fundraising/SmashPig@master] Add report or search result for transactions

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

XenoRyet set Final Story Points to 2.