Payment API
S2S (server-to-server) Payment process
Data is sent as a server-to-server request, authenticated with standard HTTP Basic Authentication Header. All server-to-server requests use UTF-8 charset.
If payment method is chosen in web store, see Payment API | Choosing the payment method
AÂ new payment request (Create Payment | Request (S2S HTTP POST) ) is sent by the web store software (with no payer browser intervention).
The success response (Create Payment | Response (XML) ) is in XML document with root element
<pmt>
.These values are usually the same as in the request:Â
pmt_action, pmt_version, pmt_id, pmt_reference, pmt_amount, pmt_currency
pmt_paymenturl
This is the address where the payer can be redirected instantly to continue the payment process
or this address could be used as "payment link" that is sent to the payer for example by email
or this link can be shown somewhere in the web store.
Payer is redirected to theÂ
pmt_paymenturl
.When the payer returns to the web store after payment, web store must validate the payment confirmation and make sure it was not fabricated by a malicious user. Use Payment Status Query instantly to validate the payment.
OPTIONAL (yet recommended): Later a callback request (Callback functions) from Svea’s server is made to web store. If payment has not yet been confirmed earlier, web store must use Payment Status Query to validate the payment.
OPTIONAL:
pmt_paymenturl
expiration time can be updated Payment URL and URL Expiration
Choosing the payment method
Web store can display the available payment methods for the buyer in their web store checkout process. This is achieved by retrieving the available payment methods per order using Retrieve Available Payment Methods. After that, the Create Payment API should contain the code (pmt_paymentmethod
, Payment Method Codes) of the payment method the buyer chose in the web store. Otherwise, the buyer will choose the payment method on a page rendered by Svea Payments.
When the buyer chooses payment method in the web store that is using the Buyer’s Assistant, the web store must display the terms and conditions of the Buyer’s Assistant service in the web store and ensure the buyer agrees to them. These are found from the Retrieve Available Payment Methods API response.
Â
Svea Payments Oy
info.payments@svea.fi
+358 9 4241 7050 (weekdays 8:00 - 16:00)
Saavutettavuusseloste