Versions Compared
Version | Old Version 7 | New Version 8 |
---|---|---|
Changes made by | ||
Saved on |
Key
- This line was added.
- This line was removed.
- Formatting was changed.
New payment V4 S2S (server-to-server)
Introduction
MaksuturvaSvea Payments' s payment API can be called in two ways:
Preferred: payment parameters are sent as a server-to-server request, authenticated with HTTP Basic Auth
Deprecated: payment parameters are sent via payer's browser as a form submission and authenticated with a hash
This document describes the preferred server-to-server request.
General documentation related to payment API can be found here:
when implementing as a server-to-server request, please ignore/omit hash-related fields!
Live Search | ||
---|---|---|
|
Table of Contents |
---|
Payment process with S2S API
A new payment request (NewPaymentExtended.pmt, HTTP FORM POST) is sent by the webstore software (with no payer browser intervention).
The server-to-server request is authenticated by using standard Basic Authentication Header.
Use merchant's seller_id as the username and secret key as the password for Basic Auth Header.
Do not calculate hash! That is, leave out parameters
pmt_hash
andpmt_hashversion
. They are obsolete and totally ignored in new payment requests using Basic Authentication and can be omitted.
The response is in XML document with root element "pmt".
These values are usually the same as in the request:
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 webstore.
Code Block <pmt> <pmt_version>0004</pmt_version> <pmt_id>Q8F7XYM9Q8UF1JVFZLE6</pmt_id> <pmt_reference>00000001234567890120</pmt_reference> <pmt_amount>123,00</pmt_amount> <pmt_currency>EUR</pmt_currency> <pmt_paymenturl>https://www.maksuturva.fi/Pay.pmt?ST=BS35116e87d26762c605c59a7612d115836ccae45d00000000000000650941760!</pmt_paymenturl> </pmt>
Payer is redirected to the
pmt_paymenturl
.When the payer returns to the webstore after payment, use Payment Status Query to validate the payment since the return message won't be hash validated as we cannot calculate the hash without the
pmt_hashversion
.
Expand | ||
---|---|---|
| ||
New payment request: http://docs.maksuturva.fi/en/html/pages/3_3_payment.html Server-to-server requests are sent to address
|
Expand | ||
---|---|---|
| ||
|