/
Authentication
Authentication
All server-to-server requests to Svea Payments API are authenticated with standard Basic Authentication Header. Use merchant's seller id as the username and secret key as the password.
Authentication: Basic <base64-encoded credentials>
Example in Java:
String username = "sellerid";
String password = "secretkey";
String base64UserPass = java.util.Base64.getEncoder().encodeToString((username + ":" + password).getBytes(Charset.forName("UTF-8")));
URL url = new URL("https://test1.maksuturva.fi/NewPaymentExtended.pmt");
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setRequestProperty("Authorization", "Basic " + base64UserPass);
System.out.println("Basic " + base64UserPass);
output:
Basic c2VsbGVyaWQ6c2VjcmV0a2V5
, multiple selections available,
Related content
Login / Sisään kirjautuminen
Login / Sisään kirjautuminen
More like this
Hash Generation
Hash Generation
More like this
Online Payments
Online Payments
More like this
Payment API
Payment API
More like this
S2S API
More like this
Create Payment
Create Payment
More like this
Svea Payments Oy
info.payments@svea.fi
+358 9 4241 7050 (weekdays 8:00 - 16:00)
Saavutettavuusseloste