The MyPay API is a comprehensive solution for electronic payment processing, enabling merchants to accept online payments securely and easily. The API supports multiple Libyan payment gateways with a secure and reliable flow.
Available Environments
Production Environment
Base URL: https://mypay.ly/pay/api/v1/
Sandbox Environment (Testing)
Base URL: https://mypay.ly/pay/sandbox/api/v1/
[!WARNING] Use the Sandbox environment for testing and development, and the Production environment for real transactions only.
Supported Payment Gateways
MyPay API supports the following gateways:
- Moamalat: Payment gateway via banking cards
- Masrafi Pay: Payment gateway for Jumhouria Bank
- Yasr Pay: Payment gateway for National Commercial Bank
- Sahary Pay: Payment gateway for Sahary Bank
- Edfali: Payment gateway for Bank of Commerce and Development
Supported Currencies
- LYD: Libyan Dinar
API Security
We take security very seriously. The following measures are implemented to protect your data:
- HTTPS Encryption: All communications are encrypted using TLS protocol.
- Secure Tokens: We use unique short-lived Access Tokens for authentication.
- Validation: All input data is strictly validated.
- Rate Limiting: To protect the system from excessive use.
- Logging: Comprehensive logging of all operations for auditing and review.