How to set up stripe for payment processor in ecommerce?

Hello I am trying to use Stripe for payment processor in ecommerce.

After setting the stripe values and enabling the flag to enable stripe payment processor, when I click on Upgrade and reach on checkout page, I get error.

When I checked, It is expecting payment intent id but after checking in Stripe dashboard I got to know that it is generating token and hence the error.

Can anyone suggest how can I solve it?
Any help or suggestion is appreciated. Thanks.