0

每当客户的定期付款失败时,我需要向客户发送定制通知,这可能是资金不足或卡过期或被银行拒绝。我看到net.authorize.payment.fraud.declined了 webhook,但它是否适用于 ARB 失败付款?

4

1 回答 1

0

net.authorize.payment.capture.created就是你要找的。该有效载荷内部将是一个类似于以下内容的主体:

{
    "notificationId": "d0e8e7fe-c3e7-4add-a480-27bc5ce28a18",
    "eventType": "net.authorize.payment.authcapture.created",
    "eventDate": "2017-03-29T20:48:02.0080095Z",
    "webhookId": "63d6fea2-aa13-4b1d-a204-f5fbc15942b7",
    "payload": {
        "responseCode": 1,
        "merchantReferenceId": "19102146534003137356",
        "authCode": "LZ6I19",
        "avsResponse": "Y",
        "authAmount": 45.00,
        "entityName": "transaction",
        "id": "60020981676"
    }
}

您将需要查找responseCode值为 的2表示拒绝付款。

于 2021-06-28T13:24:42.450 回答