I'm attempting to use Stripe as a payment method, on an ASP.Net MVC project

We've gone the route of using stripe elements to define our own look and feel for the card details.

I've followed the tutorials, and have managed to get the card widgit displaying nicely.

[![enter image description here](https://i.stack.imgur.com/uVjcC.png)](https://i.stack.imgur.com/uVjcC.png)

Where it fails is on the submission.

I've hooked up the following JS to the button (taken straight from the guides)

```
var form = document.getElementById('payment-form');
    var clientSecret = $("#authcode").val();
    form.addEventListener('submit', function(ev) {
      ev.preventDefault();
      stripe.confirmCardPayment(clientSecret, {
        payment_method: {
          card: card,
          billing_details: {
            name: 'Jenny Rosen'
          }
        }
      }).then(function(result) {
        if (result.error) {
          // Show error to your customer (e.g., insufficient funds)
          console.log(result.error.message);
        } else {
          // The payment has been processed!
          if (result.paymentIntent.status === 'succeeded') {
            // Show a success message to your customer
            // There's a risk of the customer closing the window before callback
            // execution. Set up a webhook or plugin to listen for the
            // payment_intent.succeeded event that handles any business critical
            // post-payment actions.
          }
        }
      });
    });

```

Now when I put a breakpoint on it does enter the `stripe.confirmCardPayment` function

However I never get a response. I've put a break point on the line `if (result.error) {` but it never fires. I've sat and left it for over two minutes.

No errors in the chrome console, and also no network traffic.

I am happy that the JS is all loaded correctly because if I hit submit again the Stripe JS lib correctly tells me I have an in-flight confirmCardPayment

Any suggestions are most appreciated.