Create plan on stripe through laravel -
i want create plan application on stripe. scenario users charged different prices recurring payments. so, why want create plan each user.
i using laravel 5 , using "laravel/cashier": "~5.0"
laravel/cashier doesn't have functionality baked in. aren't out of luck though easy use stripe's api should downloaded dependency in vendor folder. if not can download composer.
composer require stripe/stripe-php 2.*
you can use with
use \stripe\plan; plan::create(array( "amount" => 2000, "interval" => "month", "name" => "amazing gold plan", "currency" => "usd", "id" => "gold") );
you can read more here - https://stripe.com/docs/api#create_plan
Comments
Post a Comment