Download the PHP package danialpanah/webpay without Composer
On this page you can find all versions of the php package danialpanah/webpay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download danialpanah/webpay
More information about danialpanah/webpay
Files in danialpanah/webpay
Package webpay
Short Description Laravel Package for Processing Online Payments Through Webpay Payment Gateway
License MIT
Informations about the package webpay
Laravel Webpay Payment Gateway (Bahamta)
- Introduction
- Installation
- Configuration
- Usage
- Support & Security
- Webpay Official Documentation
- License
Introduction
Laravel package for connecting and accept payments via Webpay payment gateway in your Laravel application.
Installation
- Use following command to install:
This package supports Laravel auto-discovery feature. If you are using Laravel 5.5 or greater no need to do any further actions, otherwise follow below steps.
-
Add the service provider to your
providers[]
array inconfig/app.php
in your laravel application: - For using Laravel Facade add the alias to your
aliases[]
array inconfig/app.php
in Laravel:
Configuration
-
After installation, you need to add your Webpay api settings. You can update config/webpay.php published file or in you Laravel .env file.
-
Run the following command to publish the configuration file:
-
config/webpay.php
- Add this to
.env.example
and.env
files:
Usage
Following are some approaches which you can have for initiate a payment through Webpay package:
-
Initiate Payment and Receive the Payment URL:
-
Using Facades (Initiate Payment):
-
Verify Payment:
-
Using Facades (Verify Payment):
-
Sample Response of Verify Successful Payment:
- Laravel Sample Controller:
Support & Security
This package supports Laravel 5.1 or greater, 6.x and 7.x with PHP 7.2 and above.
- In case of discovering any issues, please create one on the Issues section.
- For contribution, fork this repo and implements your code then create a PR.
License
This repository is an open-source software under the MIT license.