Skip to main content

Documentation

Payment Failed Webhook

The PAYMENT_FAILED webhook is sent when Rapyd attempts to collect from the customer’s designated payment method, and the collection attempt fails.

  • PAYMENT_FAILED Webhook

  • {
        "id": "wh_6d0b1efc39424f33556a300434cccc74",
        "type": "PAYMENT_FAILED",
        "data": {
            "id": "payment_7e88b177125a02639ce2fc3bfd890aca",
            "mid": "",
            "paid": false,
            "order": null,
            "amount": 5,
            "escrow": null,
            "status": "ERR",
            "address": null,
            "dispute": null,
            "fx_rate": 1,
            "invoice": "",
            "outcome": null,
            "paid_at": 0,
            "refunds": null,
            "captured": true,
            "ewallets": [{
                    "amount": 5,
                    "percent": 100,
                    "ewallet_id": "ewallet_56e3911e5fec5db8e0a36e1212bf4576",
                    "refunded_amount": 0
                }
            ],
            "metadata": {},
            "refunded": false,
            "auth_code": null,
            "flow_type": "",
            "created_at": 0,
            "error_code": "ERROR_3DS_AUTHENTICATION_FAILURE",
            "ewallet_id": "ewallet_56e3911e5fec5db8e0a36e1212bf4576",
            "expiration": 0,
            "fixed_side": "",
            "is_partial": false,
            "description": "testing",
            "capture": true,
            "next_action": "not_applicable",
            "country_code": "AT",
            "failure_code": "ERROR_3DS_AUTHENTICATION_FAILURE",
            "instructions": {},
            "payment_fees": null,
            "redirect_url": "",
            "visual_codes": {},
            "cancel_reason": null,
            "currency_code": "USD",
            "group_payment": "",
            "receipt_email": "",
            "textual_codes": {},
            "customer_token": "",
            "payment_method": "card_401e2852143c77ca1326f310a7e2d56b",
            "receipt_number": "",
            "transaction_id": "",
            "failure_message": "A message element required is missing from the message (eci)",
            "initiation_type": "customer_present",
            "original_amount": 5,
            "refunded_amount": 0,
            "error_payment_url": "http://www.rapyd.net/error.html",
            "payment_method_data": {
                "id": "card_401e2852143c77ca1326f310a7e2d56b",
                "name": "Jon Doe",
                "type": "at_mastercard_card",
                "image": "",
                "last4": "0119",
                "category": "card",
                "metadata": null,
                "acs_check": "unchecked",
                "cvv_check": "unchecked",
                "bin_details": {
                    "type": "CREDIT",
                    "brand": "MASTERCARD",
                    "level": "PLATINUM",
                    "country": "US",
                    "bin_number": "523929"
                },
                "next_action": "not_applicable",
                "webhook_url": "",
                "expiration_year": "29",
                "expiration_month": "04",
                "fingerprint_token": "ocfp_11ECFC3994C38A7281220EC01B2F2B1B",
                "supporting_documentation": ""
            },
            "payment_method_type": "",
            "complete_payment_url": "http://www.rapyd.net",
            "remitter_information": {},
            "statement_descriptor": "Doc Team",
            "authentication_result": {
                "eci": null,
                "result": "N",
                "version": "2.2.0"
            },
            "merchant_reference_id": "",
            "payment_method_options": {
                "3d_required": true
            },
            "merchant_requested_amount": null,
            "merchant_requested_currency": null,
            "payment_method_type_category": ""
        },
        "trigger_operation_id": "9846cf13-6983-4888-88d4-c0b378dec372",
        "status": "NEW",
        "created_at": 1675341357,
        "extended_timestamp": 1675341357981
    }