When a customer authorizes a transaction you will receive a callback at the callback_url specified when you created a payment, the callback will be a POST request with a JSON request body in the following format:

{
    "id": 1000000,
    "order_id": "123",
    "state": "authorized",
    "amount": 500,
    "currency": "DKK",
    "variables": {
        "key": "value"
    },
    "created_at": "2020-01-01 12:00:00"
}

By looking at the state you can determine if authorize was successful, in that case the state will be "authorized"

📘

Expected response code

We expect a response with a HTTP status code between 200 and 299 to consider the callback successful.

If we fail to deliver the callback, we will retry hourly for the next 12 hours.