Get settings
/adyen/settings
Target audience: Developers
Get settings¶
Release version: 4.7.5
Introduction¶
This endpoint returns configuration settings for an Adyen purchase.
Attention
This API is not required for implementing the redirect purchase flow.
URI¶
| Environment | URI |
|---|---|
| Stage | https://payway-api.stage.adeprimo.se/external/api/v2/adyen/settings |
| Production | https://backend.worldoftulo.com/external/api/v2/adyen/settings |
Requirements¶
| Identity | Scope |
|---|---|
| No | /external/adyen/r |
Curl example¶
curl --request GET \
--url https://payway-api.stage.adeprimo.se/external/api/v2/adyen/settings?product_code=adeprimo_digital&origin=https%3A%2F%2Fpurchase.example.org \
--header 'accept: application/json' \
--header 'authorization: Bearer <token>'
| Parameter | Description | Required | Format | Type |
|---|---|---|---|---|
| product_code | The product code for a package/campaign. | Yes | Size range: 1..50 Allowed values: "/^[a-zA-Z-_0-9]+$/" | String |
| origin | URI where purchase is performed (E.g. https://purchase.example.org). Must be URL-encoded | String | ||
| sdk_major_version | The Adyen Web version your purchase page uses. See Adyen Web version. | No | e.g. 5. Defaults to the current version | Integer |
Response¶
HTTP 200
{
"item": {
"origin_key": "pub.key123123",
"client_key": "client_key",
"locale": "sv-SE",
"javascript_uri": "https://checkoutshopper-live.cdn.adyen.com/checkoutshopper/sdk/6.46.0/adyen.js",
"javascript_uri_integrity": "sha384-123abc",
"javascript_major_version": 6,
"css_uri": "https://checkoutshopper-live.cdn.adyen.com/checkoutshopper/sdk/6.46.0/adyen.css",
"css_uri_integrity": "sha384-123abc",
"country_code": "SE"
}
}
Adyen Web version¶
When Tulo moves a payment configuration to a new version of Adyen Web, the settings return the new version straight away. If your purchase page cannot use the new version yet, it can keep the previous one for a while.
- Send
sdk_major_versionwith the version your purchase page uses, for example5. The response then contains the script and stylesheet of that version, andjavascript_major_versiontells which version you got. - Send the same
sdk_major_versionon every call of the purchase. See Keep the previous Adyen Web version for the full list of endpoints. The payment then runs on the same version as your purchase page. - Without
sdk_major_versionyou always get the current version. - If the payment configuration does not have the version you ask for, the call returns an
invalid_parametererror forsdk_major_version, with the versions that are available.
Add sdk_major_version before your payment configuration is moved to the new version. When your purchase page supports the new version, send the new version or leave the parameter out.
Errors¶
This API uses the common error conventions of the Payway API