#rbole-checkout-reconciliation
1 messages · Page 1 of 1 (latest)
Hello 👋
Ideally, I've seen folks map the Products in the database with Products on Stripe and retrieving the price once their customer is ready to pay & fill in the line_items
so the question is how is the mapping done? Is it a way to store the own productId under the stripe metadata object and query that ?
there is a search route also for metadata
You can use metadata to store your internal product ID, yes
https://stripe.com/docs/api/products/object#product_object-metadata
Search Product API does support looking up products by metadata
https://stripe.com/docs/search#query-fields-for-products
You can also override the product ID on Stripe with your own custom ID, the only thing you'd want to keep in mind is that it needs to be unique
https://stripe.com/docs/api/products/create#create_product-id