#codyjmathis-products

1 messages · Page 1 of 1 (latest)

heady moss
#

👋 happy to help

#

I don't really follow your request

prisma egret
#

For example, I have a product: prod_LiGVwtZ4aCJMxI which defines a price and description related to our business and am using the custom payment flow (Elements) as expressed here: https://stripe.com/docs/payments/quickstart. Is there a way to include the product from above in my request to create a payment intent as opposed to just passing a total amount to charge like so: var paymentIntent = paymentIntentService.Create(new PaymentIntentCreateOptions
{
Amount = CalculateOrderAmount(request.Items),
Currency = "eur",
.......

heady moss
#

PaymentIntents don't have a direct link to "products" or "prices"

#

they only take an amount

#

you could either pass the price ids in the metadata field of the payment intent to save the details of what was paid, or use any of our other products: Checkout, Orders, Invoices etc

prisma egret
#

Got it. Thank you!