Download the PHP package sindibad/zaincash without Composer

On this page you can find all versions of the php package sindibad/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 zaincash

zaincash-image

Laravel #1 Payment Gateway For Zaincash

GitHub license

Packagist Version

This is a Laravel Package for Payment Gateway Integration. This package supports Laravel 5.5+.

Installation

The package can be installed via Composer:

Configure

If you are not using Laravel 5.5 or higher than you need to add the provider and alias.(otherwise skip this part)

In your config/app.php file add these two lines.

then run php artisan vendor:publish to publish config/payment.php file in your config directory as well as zaincash/callback.blade.php file in views directory.

In the config file you can set to use initial configs for all your payments. But you can also change some of these values like eloquent_storage,callback_url,lang,eloquent_storage at runtime.

Then fill the credentials for zaincashGateway.php file

How to use

Invoice

your Invoice holds your payment details, so initially we'll talk about Invoice class.It is mainly used for transactioninit purpose;

Working with invoices

before doing anything you need to use Invoice class to create an invoice, Also note that if you're planning to use EloquentStorage use the following artisan command:

In your code, use it like the below:

callBackResponse

This method is used to retrieve gatewaycallback response.it gets jwt token as it's input parameter. By default, callback response input name is token but you can change it if source callback is different. if token is not set in request status will set to 'cancel'

Working with calBackResponse

$payment includes following parameters

you could also use getter methods for each of these parameters like below:

PaymentReceivedEvent

You could also use zaincash internal Event to receive payment info. Make a new event and definePaymentReceivedEvent::class in your EventListener. In your event, use it like the below:

Credits


All versions of zaincash with dependencies

PHP Build Version
Package Version
No informations.
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 sindibad/zaincash contains the following files

Loading the files please wait ....