Corporate Limited Menu
Corporate Limited Menu allows you to limit what payment instruments shows up when your customers pays through the menu. Do note that both the instrument in question needs to support corporate payment methods and have the feature enabled during the contract setup to be shown in the menu.
Do note that if you were to not invoke the restriction, every valid payment method will show up as usual in the payment menu. Only when you restrict the payment menu to corporate-supported instruments AND have instruments set to be restricted will other instruments be hidden.
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
27
28
29
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",
"instrument": null,
"corporateMode": "false",
"urls": {
"hostUrls": [ "https://example.com", "https://example.net" ],
"completeUrl": "https://example.com/payment-completed",
"callbackUrl": "https://api.example.com/payment-callback",
"termsOfServiceUrl": "https://example.com/termsandconditoons.pdf",
"logoUrl": "https://example.com/logo.png"
},
"payeeInfo": {
"payeeId": "5cabf558-5283-482f-b252-4d58e06f6f3b",
"payeeReference": "AB832"
}
}
}
Required | Field | Type | Description |
---|---|---|---|
check | paymentorder |
object |
The payment order object. |
check | └➔ operation
|
string |
The operation that the payment order is supposed to perform. |
check | └➔ currency
|
string |
The currency of the payment. |
check | └➔ amount
|
integer |
The transaction amount (including VAT, if any) entered in the lowest monetary unit of the selected currency. E.g.: 10000 = 100.00 SEK, 5000 = 50.00 SEK. |
check | └➔ vatAmount
|
integer |
The payment’s VAT (Value Added Tax) amount , entered in the lowest monetary unit of the selected currency. E.g.: 10000 = 100.00 SEK, 5000 = 50.00 SEK. The vatAmount entered will not affect the amount shown on the payment page, which only shows the total amount . This field is used to specify how much of the total amount the VAT will be. Set to 0 (zero) if there is no VAT amount charged. |
check | └➔ description
|
string |
The description of the payment order. |
check | └➔ instrument
|
string |
The payment instrument used. Selected by using the Instrument Mode. |
check | └➔ userAgent
|
string |
The user agent of the payer. Should typically be set to the value of the User-Agent header sent by the payer’s web browser. |
check | └➔ language
|
string |
The language of the payer. |
check | └➔ corporateMode
|
bool |
Determines if the menu should only show instruments that supports corporate payment methods and has been enabled in your contracts. |
check | └➔ urls
|
object |
The urls object, containing the URLs relevant for the payment order. |
check | └─➔ hostUrls
|
array |
The array of URLs valid for embedding of Swedbank Pay Seamless Views. |
check | └─➔ completeUrl
|
string |
The URL that Swedbank Pay will redirect back to when the payer has completed his or her interactions with the payment. This does not indicate a successful payment, only that it has reached a final (complete) state. A GET request needs to be performed on the payment order to inspect it further. See completeUrl for details. |
check | └─➔ callbackUrl
|
string |
The URL to the API endpoint receiving POST requests on transaction activity related to the payment order. |
check | └─➔ termsOfServiceUrl
|
string |
The URL to the terms of service document which the payer must accept in order to complete the payment. HTTPS is a requirement. |
check | └─➔ logoUrl
|
string |
With permission and activation on your contract, sending in a logoUrl will replace the Swedbank Pay logo with the logo sent in. If you do not send in a logoUrl , then no logo and no text is shown. Without permission or activation on your contract, sending in a logoUrl has no effect. Read more about this in Custom Logo. |
check | └➔ payeeInfo
|
string |
The payeeInfo object, containing information about the payee (the recipient of the money). See payeeInfo for details. |
check | └─➔ payeeId
|
string |
The ID of the payee, usually the merchant ID. |
check | └─➔ payeeReference
|
string(30) |
A unique reference from the merchant system. It is set per operation to ensure an exactly-once delivery of a transactional operation. See payeeReference for details. In Invoice Payments payeeReference is used as an invoice/receipt number, if the receiptReference is not defined. |