#Reitrac
1 messages ยท Page 1 of 1 (latest)
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?
- My final price is calculated in JS (for each ticket, unit price * quantity), and uploaded in AJAX in PHP, not stored in the back office.
So in the end, I only need to send this single final price variable to Stripe, but i dont know how.
- Since my payments are automatically uploaded to my dashboard, do I need to add controls? The goal is to validate my posts to upload them in my back office if the payment is OK. If he's knocked out, we start over.
I'm sorry, I'm a bit lost ๐
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.