When Paytrail’s service has been integrated using either the REST interface or the form interface, the payment process can be shortened and made easier from the customer’s point of view by embedding the payment method selection. The payment methods are available directly at the end of the website’s checkout process instead of the customer being directed to Paytrail’s payment page to select a payment method.
initWithToken request is used for the REST implementation and
initWithForm request is used for the form interface implementation.
Embedding the Payment method selection page widget uses jQuery in order to enable cross-browser compatibility. The module downloads jQuery library version 1.7 automatically from Google cloud services if jQuery is not available or jQuery version is unsupported. Required jQuery version is 1.4.3 or later.
The widget version 1.0 can be downloaded here (18 KB, minified).