Checkout v2

Custom Logo

schedule 2 min read

How to add your own logo.

Edit "Custom Logo" on GitHub

With permission and activation on your contract, it is possible to replace the Swedbank Pay logo in the Payment Menu. See the abbreviated example below with the added logoUrl in the Payment Order Purchase request.

  • If the configuration is activated and you send in a logoUrl, then the SwedbankPay logo is replaced with the logo sent in and the text is changed accordingly.

  • If the configuration is activated and you do not send in a logoUrl, then no logo and no text is shown.

  • If the configuration is deactivated, sending in a logoUrl has no effect.

Request

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
POST /psp/paymentorders HTTP/1.1
Host: api.externalintegration.payex.com
Authorization: Bearer <AccessToken>
Content-Type: application/json

{
    "paymentorder": {
        "operation": "Purchase",
        "currency": "SEK",
        "amount": 1500,
        "vatAmount": 375,
        "description": "Test Purchase",
        "userAgent": "Mozilla/5.0...",
        "language": "sv-SE",
        "generateRecurrenceToken": ,
        "urls": {
            "hostUrls": [ "https://example.com", "https://example.net" ],
            "completeUrl": "https://example.com/payment-completed",
            "cancelUrl": "https://example.com/payment-canceled",
            "paymentUrl": "https://example.com/perform-payment",
            "callbackUrl": "https://api.example.com/payment-callback",
            "termsOfServiceUrl": "https://example.com/termsandconditoons.pdf",
            "logoUrl": "https://example.com/logo.png"
        }
    }
}