使用Rest API下载现有的PayPal付款 [英] Downloading existing paypal payments with rest api

查看:94
本文介绍了使用Rest API下载现有的PayPal付款的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从paypal帐户下载所有现有的付款信息以对其进行分析,因此我设置了paypal的ruby rest sdk,其中涉及使用其自己的API密钥创建一个新应用程序.我可以通过以下方式成功请求:

I need to download all existing payment information from a paypal account to do some analysis on it, so I set up paypal's ruby rest sdk, which involved creating a new application with its own API keys and whatnot. I can make a successful request with the following:

payment_history = Payment.all( :count => 10 )

但是

payment_history.payments

为空.

我不确定该应用程序是否只能访问使用它创建的付款?我可以使用其余的api来获得预先付款吗?如果可能的话,我宁愿使用ruby,因为我想将其全部保留在简单的脚本中,因为我必须分析类似的条纹支付.

I'm not sure if this application can only access payments created with it? Can I not get pre-existing payments with the rest api? I would prefer to use ruby, if that's possible, as I would like to keep this all within the simple script I have to analyze similar stripe payments.

由于贝宝(Paypal)的文档迷宫和重叠的API使我感到非常困惑,因此有些指导将是万分感谢.

Some guidance would be extremely appreciated, as paypal's labrinth of documentation and overlapping APIs have me pretty confused.

推荐答案

您将只能查询使用Rest API而非经典API进行或创建的付款.您可以使用适用于相应产品的Classic Ruby SDK来获取Classic 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

这篇关于使用Rest API下载现有的PayPal付款的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆