#closebracket_best-practices
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1313505830351409204
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
If you're using Stripe Checkout it's recommended to create Products and Prices on your Stripe account.
If you're just using Payment Element, you just specify the total amount.
Alternatively, you can use Checkout with price_data which will create Prices with a specified unit amount on the fly: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-line_items-price_data-unit_amount
I think this is more what I'm looking for... I just want to pass the amount and some other tracking metadata to Stripe without creating products in the stripe backend.
(e.g. like the product info)
"custom_fields": [], "custom_text": { Yep. That should work
Thank you. I was just a bit confused as to whether I had to create the products in the backend or not ๐ Brain fart moment.