APIs and Environments
APIs and Environments
Understanding Environments
Environments are essential for organizing and controlling features throughout your development lifecycle, from building and testing integrations to accepting live payments.
SagaPay provides two key environments:
- Demo Environment
- Live Environment
Environment Overview
Access Environments
This section provides an overview of how to access various environments.
Demo Environment
The demo environment is a testing ground for developing and testing payment integrations without affecting real transactions. Once you log in to the SagaPay Developer Portal, you get access to the demo environment where you can generate your API credentials for testing.
The demo environment allows you to:
- Use test cards in payment page mode
- Test your online integrations with the APIs and SDKs
Important
Any transactions made with real cards in the demo environment are automatically voided after 30 minutes and are never captured or settled.
Demo Base URL
Live Environment
The production environment is where you accept live payments. Access to the live environment is provided only after SagaPay certifies your integration in a production setup.
Upon certification, you need to obtain a new set of API credentials to access the live environment. Additionally, you should update the test URL with the live URL, and replace the test API Key and API Secret with the live environment API Key and API Secret.
The live environment allows you to:
- Create orders
- Perform live transactions
- Display receipts, Branding, etc
Live Base URL
SagaPay APIs
SagaPay APIs simplifies the integration of secure and efficient payment solutions into your online platform. Our APIs provide payment functionalities for both webapp or mobile application, creating a secured payment experience. Also these APIs allows you to accept payments, process orders, and manage all payment-related tasks in the online terminals across various online payment.
Types of APIs
The API reference section is divided into categories, with each set of APIs having its own parameters and requirements, all explained in detail. For example, APIs related to merchants are grouped under Merchants APIs, and those related to payments are listed under Payments APIs.
Getting Started
New developers should start with our Initial Setup to begin the integration.
Go Live with Your Integration
To go live:
Important
Never use production credentials in development or testing environments. Always keep your environments separate.