Search code examples
laravel-4stripe-paymentslaravel-cashier

Stripe Subscription problems with Laravel 4.2


I have been using cashier to create subscriptions for a couple sites but when I tried to implement it again in an new app it's not working. I am getting Stripe Notice: Undefined property of Laravel\\Cashier\\Customer instance: default_card. Is there an update to Cashier or a property/code I need to change to make it work again?

I have the BillableTrait attached to the School Model and am trying to subscribe to a subscriptions (in Stripe) using $school->subscribe($input['school_plan'])->create($input['stripeToken']);


Solution

  • The solution is to add 'version' => '2014-06-17' to the services.php page for the Stripe info array. It requests the older API and successfully works.