2017 © Pedro Peláez
 

library laravel-payments

An alternative to Cashier

image

bcismariu/laravel-payments

An alternative to Cashier

  • Wednesday, March 7, 2018
  • by bcismariu
  • Repository
  • 1 Watchers
  • 2 Stars
  • 57 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 16 Versions
  • 0 % Grown

The README.md

Laravel Payments

Build Status Latest Stable Version License Total Downloads, (*1)

A very basic alternative to Laravel Cashier built to allow lighter implementations., (*2)

Installation

Use composer to install the package., (*3)

composer require bcismariu/laravel-payments, (*4)

Edit config/app.php and add the following line to your providers list:, (*5)

Bcismariu\Laravel\Payments\PaymentsServiceProvider::class, (*6)

Publish the package configuration files., (*7)

php artisan vendor:publish --provider="Bcismariu\\Laravel\\Payments\\PaymentsServiceProvider" --tag="config" --force

Migrate the database, (*8)

php artisan migrate

Attention!

If you plan using the konnektive driver, you should also require its dependencies., (*9)

composer require hassletauf/konnektive-crm, (*10)

Add the following lines to your .env file:, (*11)

KONNEKTIVE_LOGIN=your-konnektive-loginId
KONNEKTIVE_PASSWORD=your-konnektive-password

Usage

Add the Billable trait on your User model:, (*12)

use Bcismariu\Laravel\Payments\Billable;

class User
{
    use Billable;

Import the Credit Card info into your User object and charge it:, (*13)

$user->setCreditCard(new Card([
    'brand'     => 'visa',
    'number'    => '0000000000000000',
    'exp_month' => '02',
    'exp_year'  => '2017',
    'cvc_check' => '123', 
]));

$response = $user->charge(5, [
        'product_id'    => 1234
    ]);

Handling subscriptions


// Import the Credit Card info into your User object: $user->setCreditCard(new Card([ 'brand' => 'visa', 'number' => '0000000000000000', 'exp_month' => '02', 'exp_year' => '2017', 'cvc_check' => '123', ])); // Register the subscription and charge a certain amount: $subscription = $user->subscribe('plan-name', 5); // Check if the user has subscribed to a given plan $user->subscribed('plan-name');

The Versions

07/03 2018

dev-master

9999999-dev

An alternative to Cashier

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bogdan Cismariu

laravel billing konnektive

07/03 2018

v0.1.12

0.1.12.0

An alternative to Cashier

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bogdan Cismariu

laravel billing konnektive

07/03 2018

v0.1.11

0.1.11.0

An alternative to Cashier

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bogdan Cismariu

laravel billing konnektive

07/03 2018

v0.1.10

0.1.10.0

An alternative to Cashier

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bogdan Cismariu

laravel billing konnektive

06/03 2018

v0.1.8

0.1.8.0

An alternative to Cashier

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bogdan Cismariu

laravel billing konnektive

05/03 2018

v0.1.7

0.1.7.0

An alternative to Cashier

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bogdan Cismariu

laravel billing konnektive

05/03 2018

v0.1.9

0.1.9.0

An alternative to Cashier

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bogdan Cismariu

laravel billing konnektive

02/03 2018

v0.1.6

0.1.6.0

An alternative to Cashier

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bogdan Cismariu

laravel billing konnektive

27/02 2018

v0.1.5

0.1.5.0

An alternative to Cashier

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bogdan Cismariu

laravel billing konnektive

26/02 2018

dev-unsubscribe

dev-unsubscribe

An alternative to Cashier

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bogdan Cismariu

laravel billing konnektive

26/02 2018

v0.1.4

0.1.4.0

An alternative to Cashier

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bogdan Cismariu

laravel billing konnektive

10/02 2018

dev-subscriptions

dev-subscriptions

An alternative to Cashier

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bogdan Cismariu

laravel billing konnektive

10/02 2018

v0.1.3

0.1.3.0

An alternative to Cashier

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bogdan Cismariu

laravel billing konnektive

30/01 2018

v0.1.2

0.1.2.0

An alternative to Cashier

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bogdan Cismariu

laravel billing konnektive

18/11 2017

v0.1.1

0.1.1.0

An alternative to Cashier

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bogdan Cismariu

laravel billing konnektive

05/11 2017

v0.1.0

0.1.0.0

An alternative to Cashier

  Sources   Download

MIT

The Requires

 

The Development Requires

by Bogdan Cismariu

laravel billing konnektive