Wednesday, March 8, 2017

Send additional arguments to Stripe in Laravel Cashier

My question is how to send additional parameters in Laravel Cashier 5.2 like name and address. Stripe documentation says name and address is child arguments but I can't get it to work with the createSubscription() method. The additional argument email works fine.

$user->newSubscription('Silver', 'Silver')->create($creditCardToken, [
   'email' => $request->input('email'),
]);



via mattesj

Advertisement