- Obtain your API keys to authenticate your requests.
- Install an API library to interact with FedaPay.
- Perform an API test request to validate the integration.
Overview of the FedaPay API
With FedaPay’s solution, you can:- Create Transactions: Manage payments and track their status.
- Manage Customers: Save customer information for recurring payments or easy tracking.
- Configure Notifications: Receive real-time alerts about changes in transaction status.
- Test Mode: Allows you to simulate transactions and test your integration without making real payments.
- Live Mode: Once your integration is validated, switch to production to handle real transactions.
Steps to Integrate FedaPay into Your Application
1
Obtain Your API Keys
Each FedaPay account has two API keys:
- Test Key: Used for making requests in test mode.
- Live Key: Used for managing real transactions.
2
Install a FedaPay Library
3
Perform an API Test Request
Here’s an example request to create a test transaction using the API Reference.
Quick Integration Guide
- Create an account on FedaPay (Test or Live).
- Retrieve your API keys from your dashboard.
- Install the library that matches your development environment (PHP, Node.js, etc.).
- Make an initial request to create a test transaction and verify functionality.
FedaPay API Authentication
Authenticating requests with the FedaPay API is a crucial step to ensure the security and integrity of your requests when interacting with the platform. Every request sent to FedaPay must be authenticated with your API keys, allowing FedaPay to verify that the requests are from an authorized source.API Keys: Types and Functionality
Each FedaPay account has two sets of API keys for different environments:- Test Keys: Used in development environments to simulate transactions without financial impact. They allow you to verify that your integration works properly.
- Live Keys: Used in production environments to handle real transactions.
- Public Key: Used to identify your FedaPay account in front-end environments (such as mobile applications or JavaScript interfaces). It doesn’t grant access to critical actions but enables token creation.
- Secret Key: Must remain confidential. This key provides access to all API functions and allows sensitive actions like creating transactions or issuing refunds. Ensure that this key is never exposed in public environments.
Obtaining Your API Keys
You can access your API keys from your FedaPay dashboard:- For testing, use only the Test Keys to protect your real customers’ data during development.
- In production, switch to Live Keys once your integration is validated.
Securing API Keys
The security of your API keys is paramount for protecting your transactions and customer information. Here are some best practices to follow:- Keep Secret Keys Confidential: Never share your secret keys and limit their access only to the systems and users that need them.
- Secure Storage: Ensure that your API keys are never included in version control systems (such as Git) or in files that could be publicly accessible.
- Key Rotation: If you suspect an API key has been compromised, immediately regenerate it from the FedaPay dashboard. The compromised key will be disabled, and a new one will be issued.