The S1 interface is functionally similar to the E1 interface but it has fewer fields to send.
The payment gateway address is the same with E1: https://payment.paytrail.com
Merchant ID is the merchant identification number given by Paytrail. Merchant ID consists of digits only and it can be found from material sent to merchant by Paytrail.
Order number is used to identify one transaction from another in the website software.
Price is given in euros and cents. Price is given without currency type and decimals are separated with a dot. Price must contain two decimals.
15.50. Minimum price accepted by the service is 0.65 €.
If you need to receive transactions that are less than 0.65€, please contact our customer service https://paytrail.com/en/contact.
By default, the reference number is generated automatically. For payment methods which are used as an interface, the reference number can be given in this field to be delivered to bank’s service instead of the automatically generated one.
Any additional written information can be sent to the Payment Gateway. It can be used to back up order information like customer address, product information, etc. Order description is only visible through Merchant’s Panel.
Only EUR is accepted for Finnish banks and credit cards.
URL where customer is redirected after successful payment.
URL where customer is redirected after failed or cancelled payment.
Currently not in use.
URL to be called when the payment has been marked as paid. This URL is called with same GET parameters as
RETURN_ADDRESS when the payment is marked as paid. Note that the
NOTIFY_ADDRESS request is done by Paytrail server and so customer’s browser session is not available in that call. The
NOTIFY_ADDRESS request is normally done within a couple of minutes from completing the payment.
Interface version. Newest versions are S1 and E1.
Culture affects on default language and how amounts are shown on payment method selection page. Available cultures are
If payment method selection is done in the website, payment method is delivered in this field. Check the available payment methods from this page.
Paytrail’s service can be bypassed when preselected payment method is delivered (
PRESELECTED_METHOD). Use requires agreement on use with Paytrail.
Available values are:
- 1 Normal service
- 2 Bypassing payment method selection page
This can be used to decide what payment methods are shown on the payment page. Payment method values are to be brought separated with comma.
Currently not in use.
This example shows how to use the gateway service without additional payment information. In most cases the additional payment information should be used. This form is placed in the website by the payment method selection. The form shows the payment button currently in use and moves customer to payment service payment selection page when clicked. All fields are listed in this example, including optional unnecessary fields for better clarity. They can be removed from form. Please note that in
AUTHCODE calculation all fields, including optional parameters must always be used!
<form action="https://payment.paytrail.com/" method="post"> <input name="MERCHANT_ID" type="hidden" value="13466"> <input name="AMOUNT" type="hidden" value="99.90"> <input name="ORDER_NUMBER" type="hidden" value="123456"> <input name="REFERENCE_NUMBER" type="hidden" value=""> <input name="ORDER_DESCRIPTION" type="hidden" value="Testitilaus"> <input name="CURRENCY" type="hidden" value="EUR"> <input name="RETURN_ADDRESS" type="hidden" value="http://www.esimerkki.fi/success"> <input name="CANCEL_ADDRESS" type="hidden" value="http://www.esimerkki.fi/cancel"> <input name="PENDING_ADDRESS" type="hidden" value=""> <input name="NOTIFY_ADDRESS" type="hidden" value="http://www.esimerkki.fi/notify"> <input name="TYPE" type="hidden" value="S1"> <input name="CULTURE" type="hidden" value="fi_FI"> <input name="PRESELECTED_METHOD" type="hidden" value=""> <input name="MODE" type="hidden" value="1"> <input name="VISIBLE_METHODS" type="hidden" value=""> <input name="GROUP" type="hidden" value=""> <input name="AUTHCODE" type="hidden" value="270729B19016F94BE5263CA5DE95E330"> <input type="submit" value="Siirry maksamaan"> </form>
The string to be used for
AUTHCODE calculation is formed by joining the values from
<input> fields above.
MD5 sum is counted from this string and converted to uppercase.
Please note that this example did not include any characters that are handled differently in charsets UTF-8 and ISO-8859-1. Because of this, the
AUTHCODE is the same irrelevant of the charset is used.