API

API is a technology that facilitates information or data exchange between two or more software applications. The API is a virtual interface between two software functions that work together, e.g., between a word processor and a spreadsheet. An API defines how programmers use certain functions of computer. The API is available for window systems, file systems, database systems and network systems.

Using ESPAY's API, developers can access the ESPAY functionality. There are several API methods that can be used in a variety of ways, including receiving payments, creating invoices, sending funds, and managing accounts.

ESPAY authenticates API commands using the API key located in your account. If you do not include the key or use the wrong key and the key to be used is deleted when the API command is executed, ESPAY returns an error response.

ESPAY has provided a separate key for each account that can be used for testing and processing live transactions. All API commands can be run in test mode or in live mode.

There are two types of API keys: secret and public.

The secret API key must be kept secret and stored only on your server. With this key, you can execute all API commands without restrictions.

The public API key is used to identify your account at ESPAY. In other words, this key can be found in the JavaScript code of ESPAY, or in the Android or iPhone application. With the public key, only tokens can be created and authenticated on credit / debit cards.

After registering for the account, you will receive three API keys: a secret key in trial mode and two public keys in trial mode and in live mode. You can make changes as needed, add or delete keys.

Note: Use the test mode API key only to develop and test the integration. This will help prevent inadvertent creation or modification of live transactions.