Level 80
@sprinto The options reference is on Stripe’s API docs: https://stripe.com/docs/api#create_subscription
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
In Stripe it's now possible to use them to send out invoices etc. I'm looking into if it would be possible somehow to send this data when creating newSubscription: screenshot: https://screencast.com/t/f03Twahbhm5d Data:
Send emails to:
Billing address
Phone
$user->newSubscription('main', 'mo')->create($request->stripeToken, [
'email' => $user->email,
]);
Works fine, but not sure how to add the other data?
Figured it out. For anyone else:
$user->newSubscription('main', 'mo')->create($request->stripeToken, [
'email' => $user->email,
'shipping' => [
'address' => [
'line1' => $user->address,
'city' => $user->city,
'country' => $user->country,
'postal_code' => $user->zip,
],
'name' => $user->name,
'phone' => $user->phone,
]
]);
Please or to participate in this conversation.