#wolfborg

1 messages · Page 1 of 1 (latest)

brittle basinBOT
molten sphinx
#

However, only Checkout, Invoices, and Subscriptions work with Prices.

#

With Payment Intents you need to set the amount when you create them.

random yarrow
#

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

molten sphinx
#

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

random yarrow
#

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

molten sphinx
#

Yes. Invoices are the other option for a one-off payments that include line items and relate to Products/Prices.

random yarrow
#

Ok, thank you! Will explore more in that direction. Can I get back to you in this message thread if I have more questions?