Reputation: 888
So I have my admin page for my website and I use Paypal to process payments and I was wondering if there is a way to get a report with the total earning. I read the documentation but I only found generating transaction reports. In case I didn't make my self clear what I mean is I request the API and it returns a float or int with the total earnings so I can display the amount on my admin page.
Upvotes: 1
Views: 97
Reputation: 30477
You might be able to calculate a running total minus fees by setting up and listening for transaction Webhooks, specifically PAYMENT.CAPTURE.COMPLETED
I would just use the Reports features in PayPal.com rather than obsessing about building your own counter.
Upvotes: 1