Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

David_Cotton's avatar

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'), ]);

0 likes
0 replies

Please or to participate in this conversation.