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

SDCODE's avatar

Stripe Checkout Session

when creating subscription want to change Description. https://prnt.sc/rE1D-VFvaVWh

stripe = new \Stripe\StripeClient('sk_test_4eC39HqLyjWDarjtT1zdp7dc');
$stripe->checkout->sessions->create([
  'success_url' => 'https://example.com/success',
  'line_items' => [
    [
      'price' => 'price_H5ggYwtDq4fbrJ',
      'quantity' => 2,
    ],
  ],
  'mode' => 'subscription',
]);
0 likes
1 reply

Please or to participate in this conversation.