Download the PHP package kahil-raghed/masarat-ly-php-sdk without Composer
On this page you can find all versions of the php package kahil-raghed/masarat-ly-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kahil-raghed/masarat-ly-php-sdk
More information about kahil-raghed/masarat-ly-php-sdk
Files in kahil-raghed/masarat-ly-php-sdk
Download kahil-raghed/masarat-ly-php-sdk
More information about kahil-raghed/masarat-ly-php-sdk
Files in kahil-raghed/masarat-ly-php-sdk
Vendor kahil-raghed
Package masarat-ly-php-sdk
Short Description Package to process payments throught https://masarat.ly payment gateway
License MIT
Homepage https://github.com/kahil-raghed/masarat-ly-php-sdk
Package masarat-ly-php-sdk
Short Description Package to process payments throught https://masarat.ly payment gateway
License MIT
Homepage https://github.com/kahil-raghed/masarat-ly-php-sdk
Please rate this library. Is it a good library?
Informations about the package masarat-ly-php-sdk
Masarat.ly PHP SDK
A simple PHP SDK for integrating with the Masarat.ly payment gateway.
Installation
Requirements
- PHP >= 7.4
- GuzzleHTTP >= 6.5
Usage
Basic Payment
API Methods
signIn($userId, $pin, $providerId, $authUserType): ApiResponse
Authenticate and obtain a token. Returns an ApiResponse object.
openSession($amount, $identityCard, $transactionId, $onlineOperation): ApiResponse
Open a payment session. Returns an ApiResponse object with session data including value (session token).
Parameters:
$amount- Transaction amount$identityCard- Customer card ID (9-10 digits)$transactionId- Unique transaction ID$onlineOperation- 1 for Sell, 2 for Refund
completeSession($sessionToken, $otp): ApiResponse
Complete the transaction with OTP verification. Returns an ApiResponse object.
getToken() / setToken($token)
Get or set the authentication token.
License
MIT
Author
Raghed Kahil - [email protected]
All versions of masarat-ly-php-sdk with dependencies
PHP Build Version
Package Version
The package kahil-raghed/masarat-ly-php-sdk contains the following files
Loading the files please wait ...