Merx and credit card sca (Stripe)

Hi,

I try to use Merx, it’s ok with Paypal but I really don’t understand how to use with Stripe and I want to.
I have this : GitHub - wagnerwagner/merx-examples: Switch branches to see other examples
I have the Stripe key/secret in config.php.
Does I need Releases · stripe/stripe-php · GitHub ?

Where does this code go? in templates? in controllers?

<?php
$paymentIntent = $cart->getStripePaymentIntent();
$clientSecret = $paymentIntent->client_secret;
$kirby->session()->set('stripePaymentIntentId', $paymentIntent->id);
1 Like