Download the PHP package php-monsters/laravel-online-payment without Composer

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

Laravel Iranian Online Payment Component

Online Payment Module handler for Laravel 5+ known as LaraPay component completely compatible with BankTest sandbox. Larapay integrated all Iranian payment gateways into one component.

Here are a few short examples of what you can do:

Currenctly supports:

But what is B‌anktest sandbox?

Requirements

Larapay Version 6+ required PHP 7+

Installation

  1. Installing via composer

  2. Add package service provider to your app service providers (only for Laravel < 5.5):

  3. Add package alias to your app aliases (only for Laravel < 5.5):

  4. Publish package assets and configs

  5. Run migration

Configuration

If you complete installation step correctly, you can find Larapay config file as larapay.php in you project config file.

For sandbox (banktest) you should set in your .env file otherwise set

If you choose development mode, Larapay use banktest.ir as it's payment gateway.

Set your gateway(s) configs in your .env file. Here are some example:

Setup callback route

you should create a route for handling callback from bank and set your route name in .env

For example create a POST route in routes folder, web.php like this:

then set the route name in .env file:

Usage

Prepare payable model

Use Payable trait in your order model or any other model like user which will get payment feature and implement it.

You can impalement getAmount() method to return Iranian Rail amount of your model.

Now you just have 3 steps to complete your payment:

1- create transaction

In your bank controller create a transaction for your order and generate bank for to transfer user to payment gateway.

2- show bank transfer form

Now you can show you $form in your go-to-bank view file:

You can modify bank forms in:

3- handle callback

After payment, bank call you callback route

If you want to revers transaction and your bank support it, you can do this way:

Methods

Methods available in Paybel trait and your order model:

Methods available in LarapayTransaction model:

Fields available in LarapayTransaction model:

Status in boolean:

LarapayTransaction

You can use LarapayTransaction model to find your transaction:

This class use SoftDeletes. you can call delete() on your transaction model to softDelete it or forceDelete() to truly remove it from your database.

Security

If you discover any security related issues, please email [email protected] or [email protected] instead of using the issue tracker.

Team

This component is developed by the following person(s) and a bunch of awesome contributors.

Aboozar Ghaffari Milad Kianmehr Sina Miandashti XShaan
Aboozar Ghaffari Milad Kianmehr Sina Miandashti XShaan

Support This Project

Please contribute in package completion. This is the best support.

License

The Laravel Online Payment Module is open-sourced software licensed under the MIT license


All versions of laravel-online-payment with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-soap Version *
ext-json Version *
ext-bcmath Version *
ext-simplexml Version *
illuminate/contracts Version >=7.0
illuminate/database Version >=7.0
illuminate/http Version >=7.0
illuminate/routing Version >=7.0
illuminate/support Version >=7.0
illuminate/view Version >=7.0
php-monsters/laravel-xlog Version ^1.3.0
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 php-monsters/laravel-online-payment contains the following files

Loading the files please wait ....