Download the PHP package vikaswalia/laravel-gopay without Composer
On this page you can find all versions of the php package vikaswalia/laravel-gopay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vikaswalia/laravel-gopay
More information about vikaswalia/laravel-gopay
Files in vikaswalia/laravel-gopay
Informations about the package laravel-gopay
GoPay SDK for Laravel
- GoPay SDK for Laravel
- Requirements
- Installation
- Step 1: Install package
- Step 2: Configuration
- Features
- Languages
- Scopes
- Events
- Usage/Examples
- Facade GoPaySDK
- Check Payment State
- License
Requirements
The GoPay SDK for Laravel package requires PHP 8.0+, Laravel 8+.
Installation
Step 1: Install package
Add the package in your composer.json by executing the command:
This command installs the package into the vendor/ directory.
Step 2: Configuration
You can initialise config file by running command:
Next, you can see newly created file located in config folder - gopay.php.
By default, the config file looks like this
Basic variables can be set in .env file.
Features
Languages
You can set up payment gateway interface language when you creating new payment.
Via GoPay Definition
Via Language Code
Via String
Scopes
Via GoPay Definition
Via String
Events
| Name | Class |
|---|---|
| PaymentCreated | VikasWalia\LaravelGoPaySDK\Events\PaymentCreated |
Usage/Examples
Facade GoPaySDK
For example you can use facade GoPaySDK in a Controller to create standard payment:
Check Payment State
Here's a simple example of how you can get a payment status and how you can assign the status to an order.
List of possible payment states
License
Copyright (c) Vikas Walia. MIT Licensed, see LICENSE for details.
All versions of laravel-gopay with dependencies
illuminate/support Version ^11.0
illuminate/config Version ^11.0
illuminate/cache Version ^11.0
illuminate/container Version ^11.0
gopay/payments-sdk-php Version ^1.4