This chapter describes how a web shop communicates with the payment gateway with Form interface. When using the FORM interface, the payment data is created as a form on the web applications page. The consumer sends this form to the payment service. The payment is then completed in the web browser as an immediate result of the customer's actions.
Latest and recommended API version is E2. You can still find the documentation for previous API versions S1 and E1 from Deprecated API page.
Interface version E2 has replaced the previous versions E1 and S1. E2 is extensible which means that it can be used with or without product and delivery contact data. Interface version upgrade requires definition of fields used in payment creation and return call in fields PARAMS_IN and PARAMS_OUT. Interface version E2 also provides more data when returning from payment process to web shop.
Some of the fields have been renamed or removed but all features supported in E1 and S1 interfaces are still available. Aslo Validation of fields is stricter than with previous versions. Check list of changed fields from the table below.
Table 5.1. Changed payment creation fields comparing E2 to older interfaces
|Change type||Old interface||Old field name||New E2 Field name||notes|
|Field renamed||E1, S1||ORDER_DESCRIPTION||MSG_UI_MERCHANT_PANEL|
|Field renamed||E1, S1||RETURN_ADDRESS||URL_SUCCESS|
|Field renamed||E1, S1||CANCEL_ADDRESS||URL_CANCEL|
|Field renamed||E1, S1||NOTIFY_ADDRESS||URL_NOTIFY|
|Field renamed||E1, S1||CULTURE||LOCALE|
|Field renamed||E1, S1||PRESELECTED_METHOD||PAYMENT_METHODS|
|Field removed||E1, S1||TYPE||-|
|Field removed||E1, S1||PENDING_ADDRESS||-|
|Field removed||E1, S1||MODE||-||Payment page bypass is implemented using field PAYMENT_METHODS|
|Field removed||E1, S1||VISIBLE_METHODS||-||Payment page method visibility selection is implemented using field PAYMENT_METHODS|
|Field removed||E1, S1||GROUP||-|
|New field||PARAMS_IN||Defines fields sent to payment gateway and used in authcode calculation.|
|New field||PARAMS_OUT||Defines fields returned as a part of URL_SUCCESS, URL_CANCEL and URL_NOTIFY and used in return authcode calculation.|
|New field||ALG||Defines algorithm used in authcode calculation.|