Authorization
HTTP header and signed by your private API Key.
Create a new API key
To use the API you will need to generate a new API key. Please reach out to your Wpay representative who will provide you with the API key.Using an SDK is the most simple way to call and authenticate with our API. When using one of our SDKs to call the API, authentication is handled by the SDK client. You will
only need to initialize the SDK with your private to handle authentication.
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.Summary
In this step you:- Learned about API authentication
- Created a new private key for the API
- Used an SDK to authenticate or manually created a token