Skip to main content

Documentation

Payment Completed Webhook

The PAYMENT_COMPLETED webhook is sent when funds are received from a payment method.

A card payment with capture set to true receives a CLO status immediately after the payment. If the payment method requires the action of a third party to complete the payment process, this webhook is triggered when the last required third-party action is completed.

In the sandbox, you can simulate the third-party action and trigger this webhook. Use:

  • PAYMENT_COMPLETED Webhook

  • {
        "id": "wh_f63febe87feda1cea4909b916fb5d771",
        "type": "PAYMENT_COMPLETED",
        "data": {
        "id": "payment_99d7e04f82c75ea4c327c602ca6401ae",
        "amount": 5,
        "original_amount": 5,
        "is_partial": false,
        "currency_code": "USD",
        "country_code": "AT",
        "status": "CLO",
        "description": "testing",
        "capture": true,
        "merchant_reference_id": "",
        "customer_token": "cus_3670eac2a6c45d67fd5de7f59341d559",
        "payment_method": "card_8fa6f39774a1c599de2be2d980471e14",
        "payment_method_data": {
            "id": "card_8fa6f39774a1c599de2be2d980471e14",
            "type": "at_visa_card",
            "category": "card",
            "metadata": null,
            "image": "",
            "webhook_url": "",
            "supporting_documentation": "",
            "next_action": "not_applicable",
            "name": "Jon Doe",
            "last4": "0010",
            "acs_check": "pass",
            "cvv_check": "unchecked",
            "bin_details": {
                "type": "CREDIT",
                "brand": "VISA",
                "level": "SIGNATURE",
                "country": "SG",
                "bin_number": "401636"
            },
            "expiration_year": "29",
            "expiration_month": "04",
            "fingerprint_token": "ocfp_201dedc1b9b3c59a2e43232bd1979007"
        },
        "auth_code": "093909",
        "expiration": 1676357157,
        "captured": true,
        "refunded": false,
        "refunded_amount": 0,
        "receipt_email": "",
        "redirect_url": "https://sandboxcheckout.rapyd.net/3ds/method.html?forge=%7B%22test_gw_signature_tgw%22%3A%22cfd8880f128405f96396c49be4657c70b5b71c1a097e70814630d125b6eef5f8%22%2C%22rapyd_origin_id_tgw%22%3A%226231c401a30ea49ad030bc05%22%2C%22execution_session_tgw%22%3A%22123%22%2C%22rapyd_unique_id_tgw%22%3A%2220d4bb65-344f-4d54-b0e9-b84d84977c0c%22%2C%22org_id_tgw%22%3A%22f2245bf0-e41b-45dc-8498-73bb397cbac9%22%2C%22gateway_type%22%3A%22korta%22%7D&redirection_data=%7B%22threeDSMethodData%22%3A%22eyJ0aHJlZURTU2VydmVyVHJhbnNJRCI6ImE1MTc3M2E1LTU1YTUtNGU0OC05YjRlLTJkYzNjN2MxMjBjOCIsInRocmVlRFNNZXRob2ROb3RpZmljYXRpb25VUkwiOiJodHRwczovL3FhYXBpLnJhcHlkLm5ldC92MS9ob3N0ZWQvM2RzL21ldGhvZC9ub3RpZmljYXRpb24_Zm9yZ2U9JTdCJTIydGVzdF9nd19zaWduYXR1cmVfdGd3JTIyJTNBJTIyY2ZkODg4MGYxMjg0MDVmOTYzOTZjNDliZTQ2NTdjNzBiNWI3MWMxYTA5N2U3MDgxNDYzMGQxMjViNmVlZjVmOCUyMiUyQyUyMnJhcHlkX29yaWdpbl9pZF90Z3clMjIlM0ElMjI2MjMxYzQwMWEzMGVhNDlhZDAzMGJjMDUlMjIlMkMlMjJleGVjdXRpb25fc2Vzc2lvbl90Z3clMjIlM0ElMjIxMjMlMjIlMkMlMjJyYXB5ZF91bmlxdWVfaWRfdGd3JTIyJTNBJTIyMjBkNGJiNjUtMzQ0Zi00ZDU0LWIwZTktYjg0ZDg0OTc3YzBjJTIyJTJDJTIyb3JnX2lkX3RndyUyMiUzQSUyMmYyMjQ1YmYwLWU0MWItNDVkYy04NDk4LTczYmIzOTdjYmFjOSUyMiUyQyUyMmdhdGV3YXlfdHlwZSUyMiUzQSUyMmtvcnRhJTIyJTdEIn0%22%2C%22acs_action_url%22%3A%22https%3A%2F%2Fqaforge.rapyd.org%2Fevoke%2Fforge_request%2Fkorta%2F6231c401a30ea49ad030bc05%22%7D",
        "complete_payment_url": "https://www.rapyd.net",
        "error_payment_url": "https://www.rapyd.net/error.html",
        "receipt_number": "",
        "flow_type": "",
        "address": null,
        "statement_descriptor": "Doc Team",
        "transaction_id": "",
        "created_at": 1675752357,
        "metadata": {},
        "failure_code": "",
        "failure_message": "",
        "paid": true,
        "paid_at": 1675752379,
        "dispute": null,
        "refunds": null,
        "order": null,
        "outcome": null,
        "visual_codes": {},
        "textual_codes": {},
        "instructions": [],
        "ewallet_id": "ewallet_56e3911e5fec5db8e0a36e1212bf4576",
        "ewallets": [{
                "ewallet_id": "ewallet_56e3911e5fec5db8e0a36e1212bf4576",
                "amount": 5,
                "percent": 100,
                "released_amount": "undefined",
                "refunded_amount": 0
            }
        ],
        "payment_method_options": {
            "3d_required": true
        },
        "payment_method_type": "at_visa_card",
        "payment_method_type_category": "card",
        "fx_rate": 1,
        "merchant_requested_currency": null,
        "merchant_requested_amount": null,
        "fixed_side": "",
        "payment_fees": null,
        "invoice": "",
        "escrow": null,
        "group_payment": "",
        "cancel_reason": null,
        "initiation_type": "customer_present",
        "mid": "mid_4c41a85744860d8c3826c006570fd887",
        "next_action": "not_applicable",
        "error_code": "",
        "remitter_information": {},
        "save_payment_method": true,
        "authentication_result": {
            "eci": null,
            "result": "R",
            "version": "2.2.0"
        }
    }