To create and manage PAYONE Links we provide the following API.
Authorization takes place via the Authorization header in the HTTP request and is subject to the following schema:
---end
| Authorization header example |
|---|
|
---end
Create/Update Link
| Data | Example View |
|---|---|
|
merchantId |
18333 |
|
accountId |
18334 |
|
portalId |
2111222 |
|
mode |
test |
|
reference |
uniqueReference |
|
totalAmount |
100 |
|
currency |
EUR |
|
portalKey |
superSecret |
---end
The total amount is calculated as follows from the shopping cart:
| shoppingCart |
|---|
|
---end
| Total amount calculation |
|---|
|
---end
The token is now calculated in the following way:
| Concatenating principle |
|---|
|
---end
| Concatenating example |
|---|
|
---end
| HmacSAH256 principle |
|---|
|
---end
| HmacSHA256 example |
|---|
|
---end
| Base64 principle |
|---|
|
---end
| Base64 example |
|---|
|
---end
Finally we put the result in the header and get the request header:
| Example header |
|---|
|
---end
The principle remains the same the data to be signed is now: linkId
| Example get single link |
|---|
|
---end
The principle remains the same:
| Get all links |
|---|
|