public Stripe.PaymentIntent CreatePaymentIntent(Stripe.PaymentIntentCreateOptions options)
        {
            var service       = new Stripe.PaymentIntentService();
            var paymentIntent = service.Create(options);

            return(paymentIntent);
        }
        public Stripe.PaymentIntent CreatePaymentIntent(int orderId, long centAmount)
        {
            var options = new Stripe.PaymentIntentCreateOptions
            {
                Amount   = centAmount,
                Currency = "usd",
                Metadata = new Dictionary <string, string>
                {
                    { "orderId", orderId.ToString() },
                },
            };

            var service       = new Stripe.PaymentIntentService();
            var paymentIntent = service.Create(options);

            return(paymentIntent);
        }