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

Marcolino922's avatar

Correct syntax

Hi, following the Stripe schematic, I can't understand the syntax to create the data for the customer invoice.

https://stripe.com/docs/api/metadata?lang=php

$request->user()->newSubscription('default', $plan)->create([
       $request->token,
       "billing_details" => "..........................................."
]);
0 likes
1 reply

Please or to participate in this conversation.