2017 © Pedro Peláez
 

library cashier-extras

Adding the missing features to the fantastic Laravel Cashier package

image

travoltron/cashier-extras

Adding the missing features to the fantastic Laravel Cashier package

  • Tuesday, October 4, 2016
  • by travoltron
  • Repository
  • 1 Watchers
  • 9 Stars
  • 34 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

cashier-extras

Latest Version on Packagist ![Software License][ico-license] Total Downloads, (*1)

Install

Via Composer, (*2)

``` bash $ composer require travoltron/cashier-extras, (*3)


Add the following to `config/app.php`: `Travoltron\CashierExtras\CashierExtrasServiceProvider::class,` ## Usage This package adds a few interactive CLI tools to make working with Stripe and Laravel's Cashier package a little bit easier. For now it supports creating, listing, and deleting both Stripe Plans and Coupons. The Laravel Cashier package documentation states that to run it's own suite of tests, some plans and a coupon need to be added to your Stripe account. The added commands are as follows: ###Cashier Testing ``` bash php artisan cashier:test-data

This adds the needed plans and coupons for Laravel Cashier testing., (*4)

Check Stripe Keys

``` bash php artisan stripe:check-keys, (*5)


This checks that the `.env` file has been populated with the correct keys and checks at a very loose level that the keys are correctly formatted. ###Stripe Plans ``` bash php artisan stripe:list-plans

Displays a table of the plans currently enabled on your Stripe account., (*6)

``` bash php artisan stripe:make-plan, (*7)


Interactive wizard to create a plan via the CLI. ``` bash php artisan stripe:delete-plan {id}

Deletes a plan with the supplied id. To see this ID, list the plans, and select the value from the first column., (*8)

Stripe Coupons

``` bash php artisan stripe:list-coupons, (*9)


Displays a table of the coupons currently enabled on your Stripe account. ``` bash php artisan stripe:make-coupon

Interactive wizard to create a coupon via the CLI., (*10)

``` bash php artisan stripe:delete-coupon {id}, (*11)


Deletes a coupon with the supplied id. To see this ID, list the coupons, and select the value from the first column. ##Caveats By default, the `config/services.php` file has a section for Stripe setup like so: ``` php 'stripe' => [ 'model' => App\User::class, 'key' => env('STRIPE_KEY'), 'secret' => env('STRIPE_SECRET'), ],

In order to check for the keys being set properly, change this to: php 'stripe' => [ 'model' => App\User::class, 'key' => env('STRIPE_KEY', env('STRIPE_TEST_KEY')), 'secret' => env('STRIPE_SECRET', env('STRIPE_TEST_SECRET')), ],, (*12)

and add the keys STRIPE_TEST_KEY and STRIPE_TEST_SECRET to your .env file., (*13)

Change log

Please see CHANGELOG for more information what has changed recently., (*14)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*15)

Security

If you discover any security related issues, please email ben@travoltron.com instead of using the issue tracker., (*16)

Credits

License

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

The Versions

04/10 2016

dev-master

9999999-dev https://github.com/travoltron/cashier-extras

Adding the missing features to the fantastic Laravel Cashier package

  Sources   Download

MIT

The Requires

 

The Development Requires

travoltron cashier-extras

04/10 2016

0.9.5

0.9.5.0 https://github.com/travoltron/cashier-extras

Adding the missing features to the fantastic Laravel Cashier package

  Sources   Download

MIT

The Requires

 

The Development Requires

travoltron cashier-extras

04/10 2016

0.9.4

0.9.4.0 https://github.com/travoltron/cashier-extras

Adding the missing features to the fantastic Laravel Cashier package

  Sources   Download

MIT

The Requires

 

The Development Requires

travoltron cashier-extras

07/09 2016

0.9.3

0.9.3.0 https://github.com/travoltron/cashier-extras

Adding the missing features to the fantastic Laravel Cashier package

  Sources   Download

MIT

The Requires

 

The Development Requires

travoltron cashier-extras

15/08 2016

0.9.2

0.9.2.0 https://github.com/travoltron/cashier-extras

Adding the missing features to the fantastic Laravel Cashier package

  Sources   Download

MIT

The Requires

 

The Development Requires

travoltron cashier-extras

15/08 2016

0.9.1

0.9.1.0 https://github.com/travoltron/cashier-extras

Adding the missing features to the fantastic Laravel Cashier package

  Sources   Download

MIT

The Requires

 

The Development Requires

travoltron cashier-extras

15/08 2016

0.9

0.9.0.0 https://github.com/travoltron/cashier-extras

Adding the missing features to the fantastic Laravel Cashier package

  Sources   Download

MIT

The Requires

 

The Development Requires

travoltron cashier-extras