Laravel Cashier newSubscription vs Checkout newSubscription
I have enjoyed switching to the Stripe Checkout using Cashier. However if you were using the regular subscription builder you could provide customer or subscription details. Would anyone know how to include additional metadata for a subscription during Stripe Checkout?
https://laravel.com/docs/9.x/billing#additional-details
Subscription Builder: $user->newSubscription('default', 'price_monthly')->create($paymentMethod, [ 'email' => $email, ], [ 'metadata' => ['note' => 'Some extra information.'], ]);
Stripe Checkout: return $request->user()->newSubscription('default', 'price_monthly') ->checkout([ 'success_url' => route('your-success-route'), 'cancel_url' => route('your-cancel-route'), ]);
Please or to participate in this conversation.