This documentation is deprecated and only available for supporting old/legacy integrations using for example hashes.">This documentation is deprecated and only available for supporting old/legacy integrations using for example hashes.

New documentation can be found here: [DOCS:Home]">New documentation can be found here: [DOCS:Home]



Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

In cases where payer chooses specific payment method in the webstore, the available payment methods must be queried online for each order. This is essential, since the available payment methods depend on the total amount of the order. Some payment methods include restrictions regarding the total amount (min and max amounts). To tackle this, the API contains a parameter totalamount which dictates what payment methods are to be included in the response. In other words, in case of small (e.g. below 70 €) and large (e.g. over 2000 €) orders only part of the payment methods are available for the buyer to choose from. At the moment, only bank and card payment methods are always available regardless the total amount of the order. However, if web store has net settlements in use, each order's total amount must exceed the minimum transaction fee (e.g. 0,35 € in case on card payments). This is not applicable when web store uses gross settlements where transaction fees are billed afterwards by invoice.

The payment method codes (<code>) values of the response are then used in Payment interface call as the value of parameter pmt_paymentmethod.

Get Payment Methods

The available payment methods can be retrieved (using either GET or POST) from address https://www.maksuturva.fi/GetPaymentMethods.pmt (or https://test1.maksuturva.fi/GetPaymentMethods.pmt in the testing environment).

REQUEST

Field

Input name

Value

Format

min length

C/O

Seller ID

sellerid

AN15

4

C

Language of the payment method display name

request_locale

fi, sv, en, de, pl
Default: fi

A2

2

O

The total amount of the order that the buyer is about to pay, including all the costs.

totalamount

e.g. 47,50

AN17

2

O

RESPONSE

The response (XML document) is returned as direct response to the HTTP GET/POST request.

Field

Tag name

Tag value and attributes

Format

min length

C/O

Response language

language

Same as in the request

A2

2

C

Text for displaying general terms and conditions to the buyer

This is only present in cases where the web buyer's services are in use!

termstext

AN

O

Link to general terms and conditions

This is only present in cases where the web buyer's services are in use!

termsurl

AN

O

Flag telling whether given payment method supports marketplace commission or not. See the example below. If this is false, the pmt_marketplacecommission must be 0,00 in the new payment request.

This can be ignored in most cases since it is omitted from the response if marketplace commission is not applicable in the payment service being used.

paymentmethod
attr: supports\
MarketplaceCommission

true or false

AN

4

O

Payment method code

This value is used in Payment interface call as the value of parameter pmt_paymentmethod.

code

e.g. FI01 or USPP

AN4

4

C

Payment method display name

displayname

AN80

C

A link to the payment method image if it is available in the requested language.

The attributes tell image file mime type and also image size in pixels when pixel size is applicable. That is, the file type is not a vector image.

imageurl
attr: mimetype
attr: width
attr: height

AN512

O

Extra payment method fee that is added to the payment total amount.

Important! This is only applicable in cases where the web store has agreed upon an extra fee for some payment methods. It is not recommended to use this feature but in cases where extra fee cannot be added in the web store, we have this one solution for it.

If this value is present in the response, web store software must take it into account when handling new payment OK response. That is, OK response's pmt_sellercosts value is larger than the value web store sent in original payment request. It is increased by this extra payment method fee amount if the payer chose this payment method.

extrapaymentmethodfee
attr: currency

e.g. 5,00
e.g. EUR

AN16

4

O

  • No labels