When Paytrail payment 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 implementing payment method selection embedding. In this case the payment methods are available directly at the end of a webshop’s order process instead of having to move first to Paytrail service to select the payment method.
initWithToken request is used for the REST implementation and
initWithForm request is used for the form interface implementation.
Payment method selection page embedding 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).