// Set your secret key. Remember to switch to your live secret key in production! // See your keys here: https://dashboard.stripe.com/account/apikeys \Stripe\Stripe::setApiKey('sk_test_D0Z2tlqZ8SW1KKEWnHCSxKVx00hz7fi2eL'); $intent = \Stripe\PaymentIntent::create([ 'amount' => 1099, 'currency' => 'eur', ]); $client_secret = $intent->client_secret; // Pass the client secret to the client