简体   繁体   English

获取 PayPal 交易列表

[英]Get a list of PayPal transactions

I need a program for retrieving the list of transactions on my PayPal account.我需要一个程序来检索我的 PayPal 帐户上的交易列表。 I tried some Python scripts, eg using the requests module for simply logging into PayPal with GET/POST and downloading the HTML from https://www.paypal.com/activities (shows newest transactions), but unfortunately PayPal prevents web scraping (captcha), so I didn't find a solution. I tried some Python scripts, eg using the requests module for simply logging into PayPal with GET/POST and downloading the HTML from https://www.paypal.com/activities (shows newest transactions), but unfortunately PayPal prevents web scraping (captcha ),所以我没有找到解决方案。 There is a "TransactionSearch" API ( https://api.paypal.com/v1/reporting/transactions ), but the transactions show up with a delay of at least 3 hours (up to 48h) there... Is there a possibility to get a live version (as shown on their website) of my PayPal transactions using the PayPal API?有一个“TransactionSearch”API( https://api.paypal.com/v1/reporting/transactions至少有 3 小时),但交易显示延迟 48 小时是否有可能使用 PayPal API 获得我的 PayPal 交易的实时版本(如他们的网站所示)?

Unfortunately according to their documentation there isn't a way to get 'live' transactions: https://developer.paypal.com/docs/api/sync/v1/不幸的是,根据他们的文档,没有办法获得“实时”交易: https://developer.paypal.com/docs/api/sync/v1/

However it does say up to 3 hours so you may be able to retrieve transactions sooner.但是,它确实说最多 3 小时,因此您可以更快地检索交易。

They don't state a reason for why it takes up to 3 hours for executed transactions to appear in the callable request list, however I'd assume PayPal perform security checks before even processing a transaction, let alone making the transaction accessible through an open API.他们没有 state 是为什么执行的事务需要长达 3 小时才能出现在可调用请求列表中的原因,但是我假设 PayPal 在处理事务之前执行安全检查,更不用说通过打开的方式访问事务了API。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM