venus najad

venus najad

  • 1.3k
  • 414
  • 27.8k

how to define price in C# asp net webform

Aug 3 2024 8:03 PM

hello... i am trying to create card payment through stripe. i use the followng code:

LineItems = new List<Stripe.Checkout.SessionLineItemOptions>
                {
                    new Stripe.Checkout.SessionLineItemOptions
                    {
                        Price = "2.00",
                        Quantity = 2,
                    },
                },

but i get error for Price = "2.00",... i dont know how to define. 

please help me out how to define... kind regards


Answers (2)