mercredi 25 mars 2015

PayPal PHP SDK - automatically importing transaction data from PayPal


Vote count:

0




what I'm looking to accomplish is to be able to automatically populate and query a PayPal accounts transaction history and "import" this to my own database so I can apply some analysis on the information.


I have the following resource: http://ift.tt/144xAvf


But trying to use it to query the GET /v1/payments/payments endpoint I get an empty response.


I've populated my API credentials from: http://ift.tt/1GV990J


into the relevant part of the PHP example, am I incorrect in thinking I can use this REST API to obtain and import past PayPal transactions (which didn't occur via an API) to my own DB?


From the DB I want to display summary transaction details over time (for example how well is item number 1 doing over time) and also factor in different forms of payment (i.e. how much is coming in from freelance, or direct sales) for this I'll need to tweak the DB some-what to my own needs but having the data there in the first place is what I'm interested (i.e. import from PayPal to my own server the following)



  1. Date of Transaction

  2. Amount of Transaction

  3. Currency of Transaction

  4. Item Name

  5. Item Number / SKU (if available)

  6. Transaction Type (i.e. Payment Received, Shopping Cart Checkout)


Can someone help me with a clearer example of how I can achieve what I'm trying to achieve using the API?


Hopefully this is clear enough, the current example here: http://ift.tt/1GV990L isn't the clearest (and when I run that script it populates a response in sandbox, but not in live) it also has a pre- "create payment" step



asked 2 mins ago

Mike

28






PayPal PHP SDK - automatically importing transaction data from PayPal

Aucun commentaire:

Enregistrer un commentaire