TODO: CHECK THE EXAMPLE BEFORE RELEASE

Fieldinput namevalueformatmin lenghtC/ODescription
Action codepmt_actionNEW_PAYMENT_EXTENDEDAN504CNEW_PAYMENT_EXTENDED
Message versionpmt_version0004AN44CVersion of interface content
Seller IDpmt_selleridAN15CTechnical user id given to the webstore by Svea Payments.
Unique Payment IDpmt_idAN20CIdentifier given to the payment transaction by the webstore. Must be unique
Order idpmt_orderidAN50CIdentifier given to the order by the webstore. Order id should be known by the buyer.
Payment reference numberpmt_referenceN204CReference number given by the webstore and used when compensating the seller. The reference number must comply with the guidelines for a formal reference number issued by the Federation of Finnish Financial Services (FK, http://www.fkl.fi). The reference number must be at least 4 digits, the last of which is a check digit.
Payment due datepmt_duedatecurrent date in format dd.MM.yyyyAN1010CA due date given to the payment by the webstore. Currently should be today.
Buyer's (user's) localepmt_userlocalefi_FI, sv_FI, en_FIAN55OInformation on the country and language choices of the buyer. ll_CC, where ll is a two character ISO 639-1 language code and CC is a two character ISO 3166 alpha-2 country code. The default fi_FI will be used if the locale is null. For example sv_FI and en_FI will be accepted.
Sum of products and services of the orderpmt_amountn,nn
e.g.. 50,00
AN174CThe total gross sum of row types 1, 4, 5 and 6.
If the order does not contain any postal or handling cost rows (types 2 and 3), then this is the total amount of the order.
The amount must be presented with two decimals. The decimal delimiter is a comma, e.g. 94,80
Payment currencypmt_currencyEURAN33CCurrency used for the payment. Always EUR.
Ok return address (URL)pmt_okreturnAN200CThe url to which the buyer's browser will be directed to in case of confirmed payments (the order has been paid)
Error return address (URL)pmt_errorreturnAN200CThe error url to which the buyer's browser will be directed to if there is an error in the paying process. A querystring parameter Payment ID (pmt_id) is appended to this URL before redirection.
Cancel return address (URL)pmt_cancelreturnAN200CThe cancel url to which the buyer's browser will be directed to if the buyer interrupts the paying process. A querystring parameter Payment ID (pmt_id) is appended to this URL before redirection.
Delayed payment return address (URL)pmt_delayedpayreturnAN200CThe url to which the buyer's browser will be directed to if the user has confirmed using the credit transfer or giro payment method which means the payment has not yet been registered. A querystring parameter Payment ID (pmt_id) is appended to this URL before redirection.

Credit transfer or giro is not supported nowadays in "of-the-shelf" payment services. This is why we suggest using same address for both cancel and delayed payment return address (pmt_delayedpayreturn ~= pmt_cancelreturn).
Escrow in usepmt_escrowSatisfaction Guarantee payment service = Y
Direct payment service = N
A11CTells whether escrow option is used with this payment. Values: Y/N
The value is always Y for Satisfaction Guarantee payment services (for example Maksuturva Gold).
Similarly, the value is always N for Direct payment services (for example eMaksut).
Escrow option changeable by buyerpmt_escrowchangeallowedNA11CCurrently always N.
Will webstore sends an invoice to the payerpmt_invoicefromsellerY/NA11OParameter can be used, if the chosen payment method is invoice or part payment.
Y = webstore will send an invoice to the payer
N (DEFAULT) = Maksuturva or the Credit Provider will send an invoice to the payer
Payment method pre-chosen in webstorepmt_paymentmethodFINN (esim. FI01)AN44OOPTIONAL. Payment method’s code FInn.
Please check the possible values from chapter Response parameter descriptions.
Buyer’s social security number or company’s business identification codepmt_buyeridentificationcodeAN119OBuyer’s social security number or company’s business identification code.
Buyer's namepmt_buyernameAN100CName of buyer (billing)
Buyer's billing addresspmt_buyeraddressAN100CAddress of buyer (billing). Street address or p.o. box
Buyer's postal codepmt_buyerpostalcodeN20CPostal code of buyer (billing)
Buyer's citypmt_buyercityAN100CCity of buyer (billing)
Buyer's country codepmt_buyercountryFI, SE, EN, ...A2CCountry code of buyer (billing)
(ISO 3166-1 alpha-2 standard based 2-character country code http://fi.wikipedia.org/wiki/ISO_3166)
Buyer's phone numberpmt_buyerphoneAN40OPhone number of buyer (billing)
Buyer's email addresspmt_buyeremailAN100OEmail address of buyer
Delivery recipient's namepmt_deliverynameAN100CName of recipient (delivery). Street address or p.o. box (*
Delivery recipient's addresspmt_deliveryaddressAN100CAddress of recipient (delivery) (*
Delivery recipient's postal codepmt_deliverypostalcodeN20CPostal code of recipient (delivery) (*
Delivery recipient's citypmt_deliverycityAN100CCity of recipient (delivery) (*
Delivery recipient's country codepmt_deliverycountryFI, SE, EN, ...A2CCountry code of recipient (delivery) (*
(ISO 3166-1 alpha-2 standard based 2-character country code)
Sum of handling and delivery costs of the orderpmt_sellercostsn,nn
e.g.. 10,00
AN174CThe total gross sum of row types 2 and 3.
The amount must be presented with two decimals. The decimal delimiter is a comma, e.g. 7,40
Order row count (number of order rows)pmt_rowsN41CThe count or number of order rows as an integer.
Order row namepmt_row_nameNAN401CName of this order row
Max length: 40 characters
Order row descriptionpmt_row_descNAN10001CDetailed description of this order row
Order row quantitypmt_row_quantityNPreferably an integer value but also decimal number values with up to 2 decimal values are accepted. e.g. 1, 2 or 1,75AN101CThe quantity of this order row. Preferably an integer value but also decimal number values with up to 2 decimal values are accepted. e.g. 1, 2 or 1,75
For more details, see section Calculation Rules for Order Rows
Order row article or product numberpmt_row_articlenrNAN1001OArticle or product number of this order row. Optional information.
Order row unit of quantitypmt_row_unitNe.g. kg, kplAN31OUnit of quantity of this order row, e.g. kg, l, m, kpl
Order row delivery date of package or servicepmt_row_deliverydateNdd.mm.yyyyAN1010CDate in form dd.mm.yyyy – please set as current date, if there is no other logical value to use.
Order row gross unit price (VAT included)pmt_row_price_grossNn,nn
e.g.. 10,00
AN174C/OGross unit price of product (VAT included).
Either net or gross value must be supplied, but not both!
The total gross price of one order row is:
row quantity * row gross unit price
For more details, see section Calculation Rules for Order Rows
The amount must be presented with two decimals. The decimal delimiter is a comma, e.g. 94,80
Order row net unit price (VAT excluded)pmt_row_price_netNn,nn
e.g.. 10,00
AN174C/ONet unit price of product (VAT excluded).
Either net or gross value must be supplied, but not both!
For more details, see section Calculation Rules for Order Rows
The amount must be presented with two decimals. The decimal delimiter is a comma, e.g. 94,80
Order row VAT percentagepmt_row_vatNn,nn
e.g.. 24,00
AN54CDecimal number with two decimal digits. The decimal delimiter is a comma. For example: 23,00 means ”23 %”
For more details, see section Calculation Rules for Order Rows
Order row Discount percentagepmt_row_discountpercentageNn,nn
e.g.. 10,00
AN54CDecimal number with two decimal digits. The decimal delimiter is a comma. For example: 10,00 means ”10 %”
For more details, see section Calculation Rules for Order Rows
Order row typepmt_row_typeN1 = product
2 = postal cost
3 = handling cost
4 = customized product (not eligible for returns)
5 = service
6 = discount
N51C1 = product
2 = postal cost
3 = handling cost
4 = customized product (not eligible for returns)
5 = service
6 = discount (always negative value)
Hash calculation character encoding.pmt_charsetISO-8859-1,
ISO-8859-15,
UTF-8
AN15CThis field tells the character set that has been used to calculate the hash value for input data. Legal values are for now: ISO-8859-1, ISO-8859-15 and UTF-8.
Hash calculation is always done from binary data, which is not obvious in some programming languages. You must handle the transformation from character based data to binary data before hash calculation correctly. If it’s not possible to define the character set for hash calculation function, you must find out which character set is used internally by the hash algorithm.
Character encoding of input data (and of webstore)pmt_charsethttpISO-8859-1,
ISO-8859-15,
UTF-8
AN15This field tells the character encoding of the input data.
The Maksuturva payment interface handles HTTP request parameters according to this character encoding. Practically this is the character set reported by the
browser, when you’re browsing the checkout pages in the webstore.
Hash algorithmpmt_hashversionAN10CName of the algorithm used to calculate the hash. For more detals, see section Hash Calculation
Hashpmt_hashAN12832C
Hash calculated from the request fields listed below and webstore’s secret key:
pmt_action
pmt_version
pmt_id
pmt_orderid
pmt_reference
pmt_duedate
pmt_amount
pmt_currency
pmt_okreturn
pmt_errorreturn
pmt_cancelreturn
pmt_delayedpayreturn
pmt_escrow
pmt_escrowchangeallowed
pmt_invoicefromseller (only if present in request)
pmt_paymentmethod (only if present in request)
pmt_buyeridentificationcode (only if present in request)
pmt_buyername
pmt_buyeraddress
pmt_buyerpostalcode
pmt_buyercity
pmt_buyercountry
pmt_deliveryname
pmt_deliveryaddress
pmt_deliverypostalcode
pmt_deliverycity
pmt_deliverycountry
pmt_sellercosts
pmt_marketplacecommission (only if present in request)
pmt_marketplacereference (only if present in request)
for each order row, one row at a time:
>
pmt_row_nameN
> pmt_row_descN
>
pmt_row_quantityN
> pmt_row_articlenrN
>
pmt_row_unitN
> pmt_row_deliverydateN
>
pmt_row_price_grossN
> pmt_row_price_netN
>
pmt_row_vatN
> pmt_row_discountpercentageN
>
pmt_row_typeN
>* <webstore's secret key>

For further information, see Hash calculation.
Secret key generationpmt_keygenerationN3CWebstore's secret key generation or version. Default or initial value is 001.

Optional rows

Marketplace commission amount
(not in use in most cases)
pmt_marketplacecommissionn,nn
e.g. 10,00
AN174OThe commission amount reserved for marketplace.
Please contact Svea Payments support if you intend to use this parameter!
Marketplace commission reference number
(not in use in most cases)
pmt_marketplacereferenceN204OThe reference number used when commission is settled to marketplace.
Please contact Svea Payments support if you intend to use this parameter!

📘

info

*) The delivery address (pmt_deliveryaddress etc.) of each order must represent the real address to which the order is actually delivered. For example if buyer gives his home address the billing address (pmt_buyeraddress etc.) but chooses a delivery to a Parcel Point or chooses to fetch the product from the store, the delivery address must be either the Parcel Point's or store's address.

Note that ANxx means that the field contains a maximum of xx alphanumeric characters. N means numeric. C means that the field is compulsory and O means it is optional. C/O means that the field is conditionally compulsory (for example two alternative fields pmt_row_price_grossN and pmt_row_price_netN of which one, and only one, must be present). An optional field may be missing altogether, have an empty value or have a value of at least the minimum length. That is, minimum length does not make a field mandatory but when it is present in the request it must have at least the minimum length.

Language
Click Try It! to start a request and see the response here!