gpt4 book ai didi

ruby - 哪个paypal api只获取所有交易

转载 作者:数据小太阳 更新时间:2023-10-29 08:12:02 26 4
gpt4 key购买 nike

对大量的 paypal-API 感到非常困惑,我想知道我是否可以以某种方式获取交易(进出),就像我通过网络界面将其导出到 csv 一样。

我在这里:

  • REST-API似乎不适用于“非休息交易” Payment.all.size == 0 paypal-rest-api-list-payments-returns-no-entries
  • Merchant-API 不允许特定交易的详细信息。 https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/GetTransactionDetails_API_Operation_SOAP/说:

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

    我通过 transactionSearch 收到了一个 View 交易。从其中一个交易中获取 transactionId。

    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(PaymentDetails with transactionID)抛出一个没有详细信息的“内部错误 520002”。 (而且我没有发现它是否可以获取所有交易的规范)

好的,这是 Paypal 。但一定有一个他们忘记提及的简单解决方案。 (?!)或者我错过了什么?

谢谢和问候,菲尔

最佳答案

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

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

关于ruby - 哪个paypal api只获取所有交易,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28764751/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com