Download the PHP package kennedymbale/zynle-pay-php-sdk without Composer
On this page you can find all versions of the php package kennedymbale/zynle-pay-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kennedymbale/zynle-pay-php-sdk
More information about kennedymbale/zynle-pay-php-sdk
Files in kennedymbale/zynle-pay-php-sdk
Package zynle-pay-php-sdk
Short Description Professional PHP SDK for ZynlePay payment gateway API supporting Mobile Money and Card payments in Zambia.
License MIT
Informations about the package zynle-pay-php-sdk
ZynlePay PHP SDK
A comprehensive PHP 8+ SDK for integrating with the ZynlePay payment gateway API. Supports both production and sandbox environments with full type safety and comprehensive error handling.
Features
- ✅ PHP 8.0+ with strict typing
- ✅ Production & Sandbox environment support
- ✅ Type-safe API with detailed PHPDoc
- ✅ Comprehensive error handling with custom exceptions
- ✅ Input validation for all methods
- ✅ Composer-ready package structure
- ✅ Full test coverage with PHPUnit
Installation
Install via Composer:
Quick Start
Configuration
Client Class
Services
MomoDeposit - MOMO Mobile Money Payments
Process MOMO mobile money payments and check payment status.
CardDeposit - Credit/Debit Card Processing
Handle credit and debit card payments with full PCI compliance.
WalletToBank - Bank Transfers from Wallet
Transfer funds from your wallet to bank accounts.
MomoWithdraw - E-wallet Withdrawals
Withdraw funds to MOMO mobile money accounts.
PaymentStatus - Payment Status Checking
Check the status of any payment transaction.
CheckBalance - Account Balance Inquiry
Check your account balance and available funds.
WebhookHandler - Webhook Processing
Handle payment confirmation webhooks from ZynlePay.
Error Handling
All service methods throw ZynlePay\Exception\ApiException for API-related errors:
API Reference
Client Class
__construct(string $merchantId, string $apiId, string $apiKey, string $channel, string $serviceId = '1002', ?bool $sandbox = null)
MomoDeposit Methods
runBillPayment(string $senderId, string $referenceNo, float $amount, string $description = 'Payment'): arraycheckPaymentStatus(string $referenceNo): array
CardDeposit Methods
runTranAuthCapture(string $referenceNo, float $amount, string $cardNumber, string $expiryMonth, string $expiryYear, string $cvv, ...$optional): array
WalletToBank Methods
runPayToBank(string $referenceNo, float $amount, string $description = 'Bank Transfer', string $bankName = '', string $receiverId = '', ?string $callbackUrl = null, ?string $successUrl = null, ?string $failUrl = null): arraycheckBankTransferStatus(string $referenceNo): array
MomoWithdraw Methods
runPayToEwallet(string $referenceNo, float $amount, string $receiverId): arraycheckEwalletTransferStatus(string $referenceNo): array
PaymentStatus Methods
checkPaymentStatus(string $referenceNo): array
CheckBalance Methods
checkBalance(): array
WebhookHandler Methods
handle(array $webhookData): array
Testing
Run the test suite with PHPUnit:
Run specific test files:
Requirements
- PHP: 8.0 or higher
- Extensions: curl, json
- Composer: For dependency management
- PHPUnit: For testing (development only)
Support
For issues and questions:
- Check the ZynlePay API Documentation (sign in to access)
- Review the test files for usage examples
- Ensure your credentials and configuration are correct
License
This SDK is released under the MIT License. See LICENSE file for details.