Download the PHP package hawkiq/laravel-zaincash without Composer
On this page you can find all versions of the php package hawkiq/laravel-zaincash. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hawkiq/laravel-zaincash
More information about hawkiq/laravel-zaincash
Files in hawkiq/laravel-zaincash
Package laravel-zaincash
Short Description Laravel package to use in Laravel helps you to make dealing with Zain Cash API easier
License MIT
Informations about the package laravel-zaincash
hawkiq Laravel Zain Cash Package
About hawkiq laravel zaincash
ZainCash offers a simple robust payment gateway to transfer money instantly from anywhere to everywhere inside Iraq, and this package for Laravel developers since there are no official package to use in Laravel so I've decided to create one.
Requiremnt
Version | PHP | Laravel |
---|---|---|
1.x | 7.1 <= PHP | 5.8 <= Laravel |
Installation
Publish config file
setup redirect route in web.php to handle payment result and put route name in zaincash.php config file
all config variables are well described
config | Description | Type | Default |
---|---|---|---|
msisdn | The mobile phone number for your wallet, example format: 9647835077893. given by Zain Cash | String | 9647835077893 |
secret | This is used to decode and encode JWT during requests. also must be requested from ZainCash | String | secret found in config |
merchantid | You can request a Merchant ID from ZainCash's support | String | 5ffacf6612b5777c6d44266f |
live | Test enviroment or Live server (true=live , false=test) | Bool | false |
lang | setting langauge for zain cashe payment page | String | en |
order_id | you can use it to help you in tagging transactions with your website IDs | String | Str::slug(env('APP_NAME')) . '_hawkiq_' |
redirection_url | to handle payment after successfull First you need to Specify name for redirect route in web.php | String | redirect |
inside your controller
this will redirect us to Zain Cash page to enter user credentials ( MSISDN and Pin)
you can use this test user
MSISDN | PIN | OTP |
---|---|---|
9647802999569 | 1234 | 1111 |
We check for status in our redirect method in controller
result will be in JSON format like this
Security Vulnerabilities
If you discover a security vulnerability within hawkiq Laravel Zaincash, please send an e-mail to OsaMa via [email protected]. All security vulnerabilities will be promptly addressed.
Preview
this class used in following sites
feel free to contact me if you want to add your site.
Todo
Add custom redirect route.- Add additional views for easy integration into blade.
License
Laravel Zaincash is open-sourced software licensed under the MIT license.