Download the PHP package allanvb/laravel-walletone without Composer

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

Laravel package for integrating WalletOne payment gateway into laravel app

Packagist Version GitHub last commit License

Package that integrates WalletOne API into your Laravel app.

Install

Via Composer

If you're using Laravel 5.5 or above, the package will automatically register provider and facade.

Laravel 5.4 and below

Add Allanvb\LaravelWalletOne\Providers\WalletoneServiceProvider to the providers array in your config/app.php:

Add an alias in your config/app.php:

Or you can use the facade class when needed:

Configuration

You can use php artisan vendor:publish to copy the configuration file to your app's config directory:

Then update config/wallet-one.php with your credentials. Also you can update your .env file with the following:

Usage:

To use the WalletOne Library you can access the facade, or request the instance from the service container:

Or

Parameters:

In order to create payment form for user, you have to get all post params by using getParams() method.

Then send this params to your view and create form.

As form action use WalletOne::API_URL.

In order to get response from WalletOne service, you have to define a post route inside your web.php. This route should use \Allanvb\LaravelWalletOne\Http\Middleware\WalletonePay::class middleware.

You can add this middleware to your Kernel.php inside App\Http folder.

Then you can use it as following:

NOTE:

Each request to your route will generate a SuccessPayment or FailedPayment event, so all you have to do is to define a event listener for each of them.

Security

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

Credits

This package is actually a continuity of pdazcom/laravel-walletone whose author is Konstantin A.

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-walletone with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
illuminate/support Version ^5.5 || ^6 || ^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 allanvb/laravel-walletone contains the following files

Loading the files please wait ....