#Akii

1 messages · Page 1 of 1 (latest)

tropic gorgeBOT
pastel pivot
#

Yes you have price_data and product_data inside the line_items parameters when you create a Checkout Session

mossy obsidian
#

so even though that order has no product data can I still pay for it?

pastel pivot
#

It's not exactly no product data, it's product data created on-the-fly

mossy obsidian
#

Appreciate the response. Can I give a scenario of what I'm trying to do? Just want to clarify something

pastel pivot
#

Sure

mossy obsidian
#

I have this Portal(Webpage) wherein the products + prices are getting stored in a separate database which is Dataverse. The price and product changes based on a condition (some fields) then when proceeding to checkout I want to redirect it to Stripe Checkout. Is this possible?

pastel pivot
#

Yes. You should be able to dynamically specify price_data and product_data as I suggested above

mossy obsidian
#

oh ok. So I can specify more than 1 product right?

pastel pivot
#

More than one price, then each price of different products

mossy obsidian
#

Got it so what will happen I click the button checkout then it creates a dynamic list of products and prices then proceed to Stripe Checkout then get the total amount? Is this correct?

pastel pivot
#

Yes!

mossy obsidian
#

Thank you very much @pastel pivot