哪个PayPal API仅获取所有交易 [英] Which paypal api to just fetch all transactions

查看:144
本文介绍了哪个PayPal API仅获取所有交易的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

非常多的贝宝(PayPal)API令我感到困惑,我想知道我是否能够以某种方式获取(输入和输出)事务,就像我会通过Web界面将其导出到csv一样.

Very confused by the crowd of paypal-APIs, I wonder if I just can fetch the transactions (in and out) somehow, just like I would it export to csv via webinterface.

我在这里:

  • REST-API seems not working for "non-rest-transactions" Payment.all.size == 0 paypal-rest-api-list-payments-returns-no-entries
  • Merchant-API does not allow detailed info for specific transactions. https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/GetTransactionDetails_API_Operation_SOAP/ says:

注意无法检索某些类型的交易的详细信息 与GetTransactionDetails.您无法获取银行转帐的详细信息 例如,提款.

Note The details for some kinds of transactions cannot be retrieved with GetTransactionDetails. You cannot obtain details of bank transfer withdrawals, for example.

我通过transactionSearch收到了一个查看交易记录.从其中一项交易中获取了transactionId.

I recieved a view transactions via transactionSearch. Took the transactionId from one of the transactions.

api.get_transaction_details(:transaction_id => transaction_id>)
=> #<PayPal::SDK::Merchant::DataTypes::GetTransactionDetailsResponseType:0x007fd3c0f1f8d8 
@Ack="Failure", 
@Errors=[#<PayPal::SDK::Merchant::DataTypes::ErrorType:0x007fd3c0f379d8 
  @ShortMessage="Invalid transaction type", 
  @LongMessage="You can not get the details for this type of transaction", 
  @ErrorCode="10004", 
  @SeverityCode="Error">]

  • Adaptive-API(具有事务ID的PaymentDetails)抛出内部错误520002",没有详细信息. (而且我没有找到可以获取所有交易的规范)
  • Adaptive-API (PaymentDetails with transactionID) throws an "internal error 520002" with no details. (And I found no specification if it could fetch all transactions)
  • 好吧,这是Paypal.但是必须有一个他们忘记提及的简单解决方案. (?!)还是我想念什么?

    Ok, it's Paypal. But there must be a simple solution they forgot to mention. (?!) Or what did I miss?

    谢谢,菲尔

    推荐答案

    我不知道您在哪里看到商家API无法提供有关交易详细信息的信息,但这完全是错误的.

    I don't know where you're seeing info that the merchant API won't provide details about transactions, but that's simply wrong.

    您可以使用 TransactionSearch 来获取给定时间段内的交易列表,然后您可以遍历这些结果并使用 GetTransactionDetails 以获得每笔交易的详细信息.

    You you can use TransactionSearch to obtain a list of transactions within a given time period, and then you can loop through those results and use GetTransactionDetails to obtain the details for each individual transaction.

    这篇关于哪个PayPal API仅获取所有交易的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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