#skybach-pi-discount
1 messages · Page 1 of 1 (latest)
Hey, coupons/promotion codes don't work with Payment Intents. You'd need to calculate the discount manually and adjust the amount value accordingly
You could look at using the Orders API (beta) which allows coupons/discounts, and uses Payment Intents under the hood: https://stripe.com/docs/orders
looks like it needs to create a catalogue? however we dont really run an inventory in stripe
Yep, you need to work with the Products/Prices APIs. You can create inline/ad-hoc pricing data: https://stripe.com/docs/api/orders_v2/create#create_order_v2-line_items-price_data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Might not scale thought depending on the size of your catalogue
the line items can be any values we need? It's not like we need to create a catalogue in Stripe?
The price_data parameter will create an associated Price object in Stripe, yep
ok...thanks for the tips. will fiddle around