Install a server-side SDK
Use the package manager in your preferred programming language to install our server-side SDK. Token generation can only be done server side and we do not recommend doing this client side as it will expose your API key to your customers.Please always check and install the latest release of your preferred SDK.
Initialize the SDK client
Next, initialize the SDK with the ID of your instance and the private key.The instance ID is the unique identifier for your deployment of our system and is included in every API call.
Together with the environment (sandbox or production) it is used to connect to the right APIs, as well as dashboard.The possible values for your ID are one of
wpay
, wpay1
, wpay2
, or wpay3
. We will inform you
in which instance your account has been set up.Generate a checkout session
The final step is to create a new checkout session for use by Secure Fields. Checkout sessions can store also storecart_items
, metadata
, airline data, and more,
removing the need to pass these values on the transaction request.
id
if this session can now be passed to your checkout page, where it can
be used by Secure Fields.
Summary
In this step you:- Installed the SDK
- Created a new checkout session.
- Passed the
id
if this session your front-end application, where it will be used by Secure Fields.