this.browserEvent.preventDefault();
stripe.confirmCardPayment(apex.items.P2_CLIENT_SECRET.value, {
    payment_method: {
        card: card,
        billing_details: {
            name: apex.items.P2_HOLDER_NAME.value
        }
    }
}).then(function(result) {
    if (result.error) {
        // Show error to your customer (for example, insufficient funds)
        console.log(result.error.message);
    } else {
        // The payment has been processed!
        if (result.paymentIntent.status === 'succeeded') {
            apex.navigation.dialog.close(true);
            // 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.
        }
    }
});