Oct 26, 2018
0
Level 7
Laravel Cashier not storing subscription in subscriptions table
I am successfully creating a new subscription with Stripe but nothing is being stored in the Subscriptions table.
I am using Customer table instead of Users and have updated the service.php file for Stripe.
'stripe' => [ 'model' => App\Customer::class, 'key' => env('STRIPE_KEY'), 'secret' => env('STRIPE_SECRET'), ],
$response = Auth::user()->customer->newSubscription($request->get('plan'), '........')->quantity($request->get('users'))->create($stripeToken, ['email' => Auth::user()->email]);
Any help is greatly appreciated!
Please or to participate in this conversation.