How schery19/moncash-easy-sdk works
Moncash-Easy-SDK is a PHP client library for MonCash’s REST API. A merchant application configures the SDK with client credentials, then creates a payment request and sends the user to its redirect URL; after payment, it can retrieve details by order or transaction ID. The SDK also supports transfers, environment/account changes, and localized payment-button URLs. The main API facade owns API operations, while the request handler performs HTTP and response models expose returned data. Some components are indexed but not excerpted, so their internal behavior is not expanded.
Main entry points: MoncashAPI.php MoncashAPI · RequestHandler.php HTTP handler · Configuration.php Environment config · PaymentRequest.php Payment request
Components 13
SDK API
- MoncashAPI
src/MoncashAPI.php - SDK exceptions
src/MoncashException.php
Configuration & transport
- Environment config
src/Configuration.php - Credentials
src/Credentials.php - API constants
src/Constants.php - HTTP handler
src/RequestHandler.php
Transaction models
- Payment request
src/PaymentRequest.php - Payment details
src/PaymentDetails.php - Payment data
src/Payment.php - Transfer result
src/Transfert.php
Other components
- Merchant application
- MonCash REST API
- MonCash payment gateway
Connections 15
- Merchant application → MoncashAPI: configures and invokes
README.md - MoncashAPI → Environment config: loads environment
src/MoncashAPI.php - Environment config → API constants: selects endpoints
src/Configuration.php - MoncashAPI → Credentials: creates credentials
src/MoncashAPI.php - MoncashAPI → HTTP handler: sends HTTP requests
src/MoncashAPI.php - HTTP handler → MonCash REST API: performs HTTP
src/RequestHandler.php - HTTP handler → SDK exceptions: throws on cURL errors
src/RequestHandler.php - MoncashAPI → SDK exceptions: raises API errors
src/MoncashAPI.php - MoncashAPI → Payment request: builds payment request
src/MoncashAPI.php - Payment request → MonCash payment gateway: redirects user
README.md - MoncashAPI → Payment details: builds retrieved details
src/MoncashAPI.php - Payment details → Payment data: constructs payment
src/PaymentDetails.php - MoncashAPI → Transfer result: builds transfer result
src/MoncashAPI.php - Merchant application → MoncashAPI: requests payment button
README.md - MoncashAPI → MonCash payment gateway: returns button URL
src/MoncashAPI.php