Stripe – Immediately charging

I want create a charge without a confirmation on the front end. That means that a customer fills out the card details via React’s CardElement and then should click on a booking button. Is this possible without a confirm page to confirm the payment intend? The confirmation should work automatically?

I have implemented $stripe->charges->create(...) in PHP, but this did not work.

I’m using React & PHP on server side.