Preloader
Developer
Support Login in to Dashboard
Resources

Best Practices

To ensure a smooth integration process and optimal performance, follow these best practices:

Use HTTPS

Use secure HTTPS connections for all API requests.

Keep keys secret

Store your keys in environment variables. Never put them in frontend code or a public repository.

One token per payment

Request a new access token for every payment. Tokens expire after 10 minutes.

Verify the result

Match the token or custom value and the amount with your order before you deliver it.

Handle errors

Implement robust error handling to handle potential issues gracefully.

Test in sandbox

Test every flow in sandbox, including cancel and failed payments, before going live.

Stay up to date

Regularly update your integration to stay current with any API changes or enhancements.

Log requests

Log the token, trx_id and response of each payment. It makes support much faster.