Stripe SCA IPN: When consider that the payment is finished?

I am trying to set up stripe on my site with PHP, but I am lost with all the different documentation that I find. I have successfully created a payment button with the following code include(ROOT.’/files/lib/stripe-php-7.16.0/init.php’); \Stripe\Stripe::setApiKey(‘sk_test_XXXXXXX’); // ___________ $session = \Stripe\Checkout\Session::create([ ‘payment_intent_data’ => [ ‘setup_future_usage’ => ‘on_session’, ], ‘payment_method_types’ => [‘card’], ‘line_items’ => [[…

Details