Download the PHP package omalizadeh/laravel-multi-payment without Composer

On this page you can find all versions of the php package omalizadeh/laravel-multi-payment. 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-multi-payment

Tests

Laravel Online Payment Gateway Package

This is a laravel gateway payment package with multi driver support. Each driver can have multiple configurations. Supports laravel v8.0+ and requires php v8.1+

Star! if you liked this package.

> **[مستندات فارسی][readme-link-fa]**

Supported Gateways

Installation & Configuration

Install using composer

Publish main config file

Publish gateway config file based on tags. like:

For example:

Also you can publish view file for gateway redirection and customize it

In main config file multipayment.php, you can specify default driver. For example, zarinpal.second value states that zarinpal gateway with configuration under second key section on zarinpal config file will be used. There is also an option for auto amount conversion from Iranian Tomans to Iranian Rials currency (IRR) and vice versa.

In each gateway config file, you can specify multiple credentials, therefore you may have multiple gateways for your app from same provider.

Usage

Gateway payment has two major phases. first is purchase (start process by calling gateway api for a transaction_id/token) and opening gateway payment web page with received data. second is verification (checking payment was successful).

Purchase

Inovice objects hold payment data. first you create an invoice, set amount and other information, then you pass invoice to PaymentGateway Facade to start payment process. you can use setProvider method on facade to change gateway before payment.

Verification

After payment gateway redirection to your app, you must create an invoice and set it's transaction_id and amount. then use PaymentGateway to verify invoice successful payment.

Other Features

Unverified Payments

There is also a method (supported by zarinpal only for now) to get a list of successful unverified payments. use unverifiedPayments method in PaymentGateway facade for this feature.

Refund

Using refund method, you can refund a successful payment back to customer.


All versions of laravel-multi-payment with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-json Version *
guzzlehttp/guzzle Version ^7.5
illuminate/contracts Version ^8.0 || ^9.0 || ^10.0
illuminate/http Version ^8.0 || ^9.0 || ^10.0
illuminate/support Version ^8.0 || ^9.0 || ^10.0
ramsey/uuid Version ^4.7
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 omalizadeh/laravel-multi-payment contains the following files

Loading the files please wait ....