#wolfborg
1 messages · Page 1 of 1 (latest)
Hi 👋
Yes you can create prices that allow the customer to set the amount. It's one of the pricing models we mention here; https://stripe.com/docs/products-prices/getting-started#create-price
However, only Checkout, Invoices, and Subscriptions work with Prices.
With Payment Intents you need to set the amount when you create them.
Hi, thank you for the response. We are working with payment Intents are the moment, so is it not possible to attach items / products to Payment Intents at all? At the time of creation of Intent we will have the amount information
Payment Intents don't have any sort of items property to link to Products/Prices. They are intended to be a flexible method for collecting payment and have to the simple in that case. Things like Checkout, Invoices, and Subscriptions are built on top of them and include features to relate to Products/Prices.
That being said, you could include the Product/Price ID in the metadata property when creating your Payment Intents and you would have a way to know which Product/Price it was related to.
But Stripe wouldn't know they are related
Ok, so inorder to do this without using Checkout we'd for sure need to use Invoices?
yes, we were considering metadata if nothing works out
Yes. Invoices are the other option for a one-off payments that include line items and relate to Products/Prices.
Ok, thank you! Will explore more in that direction. Can I get back to you in this message thread if I have more questions?