I\'m using the custom checkout flow from stripe to add online payment to my website which uses a server endpoint to create the PaymentIntent like so:
PaymentIntent