#Reitrac

1 messages ยท Page 1 of 1 (latest)

next ploverBOT
frozen coral
#

You can pass that price and quantity to your backend however you would like. If you have fixed prices for certain things you can use our prices API and just use a price's ID alongside the quantity https://stripe.com/docs/api/prices

#

Should I use callbacks for error returns?
Is this a question about PHP error handling? If not, can you clarify your question a bit?

pliant yoke
pliant yoke
bright crag
#

Hello ๐Ÿ‘‹
Taking over as Pompey needs to step away soon
Give me a moment to catch up here

#

If you're trying to create a checkout session for one-off payment (and you don't want to create prices up-front as our docs suggest) then you'd likely need to use price_data property and pass in the information about the amount you've calculated as well as the quantity

https://stripe.com/docs/api/checkout/sessions/create?lang=php#create_checkout_session-line_items-price_data