Invoice

Description

The purchase summed up in a few words.

Edit "Description" on GitHub

Description

The description field is a 40 character length textual summary of the purchase. It is needed to specify what the payer is actually purchasing. You will find an abbreviated Purchase request below.

As you can see the description field is set to be Test Description in the the code example.

info

Notice that for Redirect, the description will be shown as Test - Reference1583419461, as set in the code example. For the Seamless View scenario, the description is not shown in the payment window, but it is still required in the initial request.

Description Request

Request

1
2
3
POST /psp/invoice/payments HTTP/1.1
Authorization: Bearer <AccessToken>
Content-Type: application/json
1
2
3
4
5
6
7
8
9
10
11
12
13
{
    "paymentorder": {
        "description": "Test Description",
        "operation": "Purchase",
        "intent":  "Authorization", 
        "currency": "SEK", 
        "generateRecurrenceToken": false,
        "userAgent": "Mozilla/5.0...",
        "language": "sv-SE",
        "urls":
            "hostUrls": ["https://example.com"]
    }
}

How It Looks

The description field as presented in Invoice Payments