Downloading Existing Paypal Payments with Rest API

Downloading existing paypal payments with rest api

You will be able to query only those payments that are made or created with Rest API not the Classic APIs. You can use the Classic Ruby SDKs for the appropriate product to get the Transaction details of the classic APIs

PayPal REST API - Taking payments on behalf of other people

Not clear what are you asking for, are you looking for a sort of referal program?

You can decide which paypal account will receive the money both with REST and Classic API.
For example using ExpressCheckout you can specify the seller account that will receive the money.

without IPN you will miss all the stuff happening to the transaction, ie:

  • payment with a different currency can result in a pending state
    (money conversion)
  • dispute
  • etc

A multiple receiver scenario could be implemented with adaptive payments: https://developer.paypal.com/docs/classic/adaptive-payments/integration-guide/APIntro/

  • "Parallel payments enable a sender to send a single payment to multiple receivers"
  • "Chained payments enable a sender to send a single payment to a primary receiver. The primary receiver keeps part of the payment and pays secondary receivers the remainder."

Need help getting PayPal transactions using PayPal REST API or any other method in C#

The PayPal-NET-SDK mention in comments is deprecated and should not be used. If you are going to make API calls for anything other than the Checkout-NET-SDK or Payouts-NET-SDK use cases, use direct REST API calls.

The best method to obtain a list of transactions is to download an activity log report in CSV format from www.paypal.com

However, if for some reason you require an API for this accounting task, the only publicly available one is the Transaction Search API: https://developer.paypal.com/docs/api/transaction-search/v1 -- which you must enable for the client ID you are using, and wait up to 9 hours (or terminate the token) if you have already requested an access token with it.

Get Transaction Data via PayPal REST API V2

Thank you to Preston PHX for pointing me in the right direction.

Whilst /v2/payments/captures works with the Transaction ID returned from a hosted Donate button, it only shows transaction info like dates, values, fees etc. No payer info which was what was requested.

For that, you have to use the /v1/reporting/transactions endpoint and supply transaction_id along with start_date and end_date - these are required, but can be grabbed from the previous captures call if not objectively known.

Note that v1/payments/sale as mentioned in Preston's answer is fully deprecated so cannot be used as a one-stop call.

In short, for the original question, two API calls are needed as above. However I have decided to simply grab consent and name/email on the website directly, rather than use the PayPal API. I will use the /v2/payments/captures endpoint however to verify a transaction was sent to and processed by this PayPal account rather than the button ID being modified somehow.

PayPal REST Api (PHP SDK) List Payments

Please follow the samples available here to do List Payments. You basically pass in the Count or Date Parameters for filtering out the data while listing the payments.

https://github.com/paypal/rest-api-sdk-php/blob/master/sample/payments/ListPayments.php

Please open issue in GitHub if you still have issues.

How to get my PayPal account's transaction history via API


I tried this out, it don't worked, I could not get the data.

And yes, I activated "Transaction Search API" in my Developer Account.

After activating it you need to wait 9 hours, and ensure you get a new access_token that is not the same as your old one. You should then have a new [scope] returned which includes https://uri.paypal.com/services/reporting/search/read

Without that scope returned, you can't use the Transaction Search API.

There must be a way, there are many tools who import this data, but which API do they use?

The Transaction Search API is actually not very useful -- most people use the Reports tab in www.paypal.com and download a CSV file



Related Topics



Leave a reply



Submit