get https://test1.maksuturva.fi/GetPaymentMethods.pmt
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 lenght | C/O |
---|---|---|---|---|---|---|
1 | Seller ID | sellerid | AN15 | 4 | C | |
2 | Language of the payment method display name | request_locale | fi, sv, en, de, pl Default: fi | A2 | 2 | O |
3 | 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 |
---|---|---|---|---|---|---|
1 | Response language | language | Same as in the request | A2 | 2 | C |
2 | 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 | ||
3 | Link to general terms and conditions This is only present in cases where the web buyer's services are in use! | termsurl | AN | O | ||
4 | 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 |
5 | 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 |
6 | Payment method display name | displayname | AN80 | C | ||
7 | 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 | ||
8 | 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 |
Request example (GET):
Response examples:
Please notice that the three dots "..." are not part of the actual response.
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<paymentmethods>
<language>en</language>
<termstext>By using Maksuturvas payment service you agree to the terms of service</termstext>
<termsurl>https://www.maksuturva.fi/documents/Maksuturva_General_Terms_and_Conditions_(customer).pdf</termsurl>
...
<paymentmethod>
<code>FI72</code>
<displayname>B2B Invoice</displayname>
<imageurl height="80" mimetype="image/png" width="150">https://www.maksuturva.fi/public_img/paymentmethods/FI72_en.png</imageurl>
<extrapaymentmethodfee currency="EUR">5,00</extrapaymentmethodfee>
</paymentmethod>
...
<paymentmethod>
<code>USPP</code>
<displayname>PayPal</displayname>
<imageurl height="80" mimetype="image/png" width="80">https://www.maksuturva.fi/public_img/paymentmethods/USPP_en.png</imageurl>
</paymentmethod>
...
<paymentmethod>
<code>FI50</code>
<displayname>Card payment (Visa, Visa Electron, MasterCard)</displayname>
<imageurl height="80" mimetype="image/png" width="150">https://www.maksuturva.fi/public_img/paymentmethods/FI50_en.png</imageurl>
</paymentmethod>
...
<paymentmethod>
<code>FI01</code>
<displayname>Nordea E-payment</displayname>
<imageurl height="80" mimetype="image/png" width="80">https://www.maksuturva.fi/public_img/paymentmethods/FI01_en.png</imageurl>
</paymentmethod>
...
<paymentmethod>
<code>FI06</code>
<displayname>Cooperative Bank E-payment</displayname>
<imageurl height="80" mimetype="image/png" width="80">https://www.maksuturva.fi/public_img/paymentmethods/FI06_en.png</imageurl>
</paymentmethod>
...
</paymentmethods>
An example with attribute supportsMarketplaceCommission:
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<paymentmethods>
<language>en</language>
<termstext>By using Maksuturvas payment service you agree to the terms of service</termstext>
<termsurl>https://www.maksuturva.fi/documents/Maksuturva_General_Terms_and_Conditions_(customer).pdf</termsurl>
...
<paymentmethod supportsMarketplaceCommission="false">
<code>FI72</code>
<displayname>B2B Invoice</displayname>
<imageurl height="80" mimetype="image/png" width="150">https://www.maksuturva.fi/public_img/paymentmethods/FI72_en.png</imageurl>
<extrapaymentmethodfee currency="EUR">5,00</extrapaymentmethodfee>
</paymentmethod>
...
...
<paymentmethod supportsMarketplaceCommission="true">
<code>FI01</code>
<displayname>Nordea E-payment</displayname>
<imageurl height="80" mimetype="image/png" width="80">https://www.maksuturva.fi/public_img/paymentmethods/FI01_en.png</imageurl>
</paymentmethod>
...
</paymentmethods>