Giter VIP home page Giter VIP logo

spark-create-stripe-plans's Introduction

Spark Create Stripe Plans

A simple Laravel artisan command to create Spark plans in Stripe.

Install

Require the library by running:

composer require gilbitron/spark-create-stripe-plans

Next you need to add the following to your providers array in config/app.php:

Gilbitron\Laravel\Spark\CreateStripePlansServiceProvider::class

Usage

Make sure your details and plans are set up in your SparkServiceProvider then run:

php artisan spark:create-stripe-plans

Your plans should now be available in your Stripe dashboard. If you re-run the command it will not overwrite existing plans.

Credits

Spark Create Stripe Plans was created by Gilbert Pellegrom from Dev7studios. Released under the MIT license.

spark-create-stripe-plans's People

Contributors

gilbitron avatar karnaukhm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

spark-create-stripe-plans's Issues

Config Options

This package is great. Just wondering you could add a config file to make things like the stripe plan name customizable. In my case, I didnt want my (somewhat long) Spark product name added to the beginning of every plan name.

Also, this skipped my existing plans but it did create a free plan in stripe even though Spark never actually creates a free plan remotely, is this expected behavior?

Conflicts with latest Spark

Clean Spark installation and I get this when I try add

Problem 1
    - Conclusion: don't install gilbitron/spark-create-stripe-plans 1.0.3
    - Conclusion: don't install gilbitron/spark-create-stripe-plans 1.0.2
    - Conclusion: don't install gilbitron/spark-create-stripe-plans 1.0.1
    - Conclusion: remove stripe/stripe-php v5.2.3
    - Installation request for gilbitron/spark-create-stripe-plans ^1.0 -> satisfiable by gilbitron/spark-create-stripe-plans[1.0.0, 1.0.1, 1.0.2, 1.0.3].
    - Conclusion: don't install stripe/stripe-php v5.2.3
    - gilbitron/spark-create-stripe-plans 1.0.0 requires stripe/stripe-php 3.* -> satisfiable by stripe/stripe-php[v3.0.0, v3.1.0, v3.10.0, v3.10.1, v3.11.0, v3.12.0, v3.12.1, v3.13.0, v3.14.0, v3.14.1, v3.14.2, v3.14.3, v3.15.0, v3.16.0, v3.17.0, v3.17.1, v3.18.0, v3.19.0, v3.2.0, v3.20.0, v3.21.0, v3.22.0, v3.23.0, v3.3.0, v3.4.0, v3.5.0, v3.6.0, v3.7.0, v3.7.1, v3.8.0, v3.9.0, v3.9.1, v3.9.2].
    - Can only install one of: stripe/stripe-php[v3.0.0, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.1.0, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.10.0, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.10.1, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.11.0, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.12.0, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.12.1, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.13.0, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.14.0, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.14.1, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.14.2, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.14.3, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.15.0, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.16.0, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.17.0, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.17.1, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.18.0, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.19.0, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.2.0, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.20.0, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.21.0, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.22.0, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.23.0, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.3.0, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.4.0, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.5.0, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.6.0, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.7.0, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.7.1, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.8.0, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.9.0, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.9.1, v5.2.3].
    - Can only install one of: stripe/stripe-php[v3.9.2, v5.2.3].
    - Installation request for stripe/stripe-php (locked at v5.2.3) -> satisfiable by stripe/stripe-php[v5.2.3].


Installation failed, reverting ./composer.json to its original content.

per seat plans, ie. spark 9.0

are you still using this code and are interested in upgrading it to cover spark 9.0, specifically the per seat pricing?

Currency option

Add an option that allows users to set a different currency (e.g. --currency=gbp).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.