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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-zaincash

hawkiq Laravel Zain Cash Package

Total Downloads Latest Stable Version License

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

License

Laravel Zaincash is open-sourced software licensed under the MIT license.


All versions of laravel-zaincash with dependencies

PHP Build Version
Package Version
Requires firebase/php-jwt Version ^6.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hawkiq/laravel-zaincash contains the following files

Loading the files please wait ....