2017 © Pedro Peláez
 

library larapay

Powerful multi-gateway payment processing library designed to make life easier in Laravel 5

image

balatsky/larapay

Powerful multi-gateway payment processing library designed to make life easier in Laravel 5

  • Thursday, March 15, 2018
  • by Balatsky
  • Repository
  • 1 Watchers
  • 0 Stars
  • 57 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 4 % Grown

The README.md

, (*1)


Larapay — a powerful Laravel extension with 2 core functionalities: 1) abstract interface for any payment gateway; 2) accounting system for your users.

Software License Scrutinizer Code Quality Build Status , (*2)

Installation

This package can be installed as a Composer dependency. ``` bash $ composer require nxmad/larapay, (*3)


If you don't use auto-discovery (or your Laravel version < 5.5), add the ServiceProvider to the `providers` array in `config/app.php` ``` php Nxmad\Larapay\LarapayServiceProvider::class,

Publish default configuration file larapay.php ``` php $ php artisan vendor:publish, (*4)


Usage example ------------- ``` php // Setup transaction for user // Actually, you can use any Entity (Model) instead of User // Transaction can have positive and negative amount $transaction = $request->user()->setup(- $amount, $description); // Check if the user can afford this order if ($transaction->affordable() || $request->user()->canAfford($transaction)) { // do some logic... // and then save the transaction as sucessfull // this way: $transaction->makeSuccessful(); // or this way: $transaction(Transaction::STATE_SUCCESSFUL); } else { // Otherwise redirect user to the payment gateway (for .e.g) $gateway = payments('paypal'); // There are 3 ways of interact with payment gateway: // Redirect (GET), POST form and any custom behavior you can define by yourself return $gateway->interact($transaction); }

Please see Wiki for more examples., (*5)

Supported gateways

You can add your gateway implementation to this list by creating an issue., (*6)

Gateway Composer package Maintainer
Unitpay nxmad/larapay-unitpay Alex Balatsky
WebMoney nxmad/larapay-webmoney Alex Balatsky
Qiwi.com P2P nxmad/larapay-qiwi-p2p Alex Balatsky
Yandex.Money P2P nxmad/larapay-yandex-money-p2p Alex Balatsky

Testing

Since 1.0 bash $ composer test, (*7)

Credits

License

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

The Versions

15/03 2018

dev-master

9999999-dev https://skylex.pro/dev/skylex

Powerful multi-gateway payment processing library designed to make life easier in Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

payments transactions skylex larapay

15/03 2018

0.3.2

0.3.2.0 https://skylex.pro/dev/skylex

Powerful multi-gateway payment processing library designed to make life easier in Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

payments transactions skylex larapay

24/07 2017

0.3.1

0.3.1.0 https://skylex.pro/dev/skylex

Powerful multi-gateway payment processing library designed to make life easier in Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

payments transactions skylex larapay

25/05 2017

0.3.0

0.3.0.0 https://skylex.pro/dev/skylex

Powerful multi-gateway payment processing library designed to make life easier in Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

payments transactions skylex larapay

17/05 2017

0.2.1

0.2.1.0 https://skylex.pro/dev/skylex

Powerful multi-gateway payment processing library designed to make life easier in Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

payments transactions skylex larapay

15/05 2017

0.2.0

0.2.0.0 https://skylex.pro/dev/skylex

Powerful multi-gateway payment processing library designed to make life easier in Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

payments transactions skylex larapay

22/04 2017

0.1.1

0.1.1.0 https://github.com/Balatsky/Payments

Flex but powerful multi-gateway payment processing library for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

payments transactions skylex larapay

21/04 2017

0.1.0

0.1.0.0 https://github.com/Balatsky/Payments

Flex but powerful multi-gateway payment processing library for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

payments transactions skylex larapay