1

Right now I'm using a transaction status webhook to update my app when a payment changes status. The other day, my web server was down when the webhook was triggered, so the status was never updated in my system, nor do I have any way to tell when the payment was marked "processed".

From the docs, when a webhook fails, it will immediately try the request another two times, but this is not helpful if my site is down for more than a few seconds.

I'd like to get the status on my own if possible, but there doesn't seem to be any info representing when the transaction was actually marked processed.

I'm guessing the "date" is the date the transaction was initiated and that "clearing date" is just an estimate of when it will be processed (and is not updated to reflect the actual date when the transaction is processed).

4

1 回答 1

0

如果您有付款的交易 ID,您可以使用交易/按 ID方法进行查找。

这将为您提供有关付款的信息:

{
    "Success": true,
    "Message": "Success",
    "Response": {
        "Amount": 1,
        "Date": "8/31/2011 10:19:09 AM",
        "DestinationId": "812-111-1111",
        "DestinationName": "Bob",
        "Id": 12345,
        "SourceId": "812-111-2222",
        "SourceName": "Alice",
        "Type": "money_sent",
        "UserType": "Dwolla",
        "Status": "processed",
        "ClearingDate": "",
        "Notes": "Thank you for lunch!",
        "Fees": [
            {
                "Id": 1646163,
                "Amount": 0.1,
                "Type": "Facilitator Fee"
            }
        ]
    }
}

Response.Status字段指示事务的当前状态,这就是您要查找的内容。

或者,您可以使用Transaction/Listing方法列出您帐户下所有最近(和较早)的交易,并使用上面显示的相同数据。您可以通过使用请求参数来过滤结果并指定范围,以缩小搜索范围并生成服务器关闭时发生的事务列表。

您对清算日期的看法是正确的,这只是对付款何时清算的估计——这不是保证。

于 2013-05-22T03:57:00.863 回答