Skip to main content
The payment request is sent by HTTPS POST from an HTML form. Always use the URL for the correct environment.

Basic implementation

1

Load the script

Include the environment JavaScript inside head.
2

Prepare the form

Add class="alignet-form-vpos2", the POST method, and all required fields, including the purchaseVerification signature.
3

Open the Modal

Call AlignetVPOS2.openModal() from the user’s click.

Safari consideration

Safari may block the helper window required to enable gateway cookies if the Modal is opened from setTimeout, onload, or after an Ajax call.
Open the Modal directly from a user action such as onclick or a link. If your flow needs a prior asynchronous operation, coordinate the documented Safari alternative with the Integrations team.
Do not mix integration and production URLs in the same implementation. Continue to parameters and responses →