承接 travoltron/cashier-extras 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

travoltron/cashier-extras

Composer 安装命令:

composer require travoltron/cashier-extras

包简介

Adding the missing features to the fantastic Laravel Cashier package

README 文档

README

Latest Version on Packagist Software License Total Downloads

Install

Via Composer

$ composer require travoltron/cashier-extras

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

php artisan cashier:test-data

This adds the needed plans and coupons for Laravel Cashier testing.

###Check Stripe Keys

php artisan stripe:check-keys

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

php artisan stripe:list-plans

Displays a table of the plans currently enabled on your Stripe account.

php artisan stripe:make-plan

Interactive wizard to create a plan via the CLI.

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.

###Stripe Coupons

php artisan stripe:list-coupons

Displays a table of the coupons currently enabled on your Stripe account.

php artisan stripe:make-coupon

Interactive wizard to create a coupon via the CLI.

php artisan stripe:delete-coupon {id}

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:

'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:

'stripe' => [
    'model' => App\User::class,
    'key' => env('STRIPE_KEY', env('STRIPE_TEST_KEY')),
    'secret' => env('STRIPE_SECRET', env('STRIPE_TEST_SECRET')),
],

and add the keys STRIPE_TEST_KEY and STRIPE_TEST_SECRET to your .env file.

Change log

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

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

Credits

License

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

统计信息

  • 总下载量: 35
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-08-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固