#alex6743_code
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/1356272642264403968
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐ I'd use price_data to create a Price dynamically:
https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-line_items-price_data
You can use product_data inside of that if you also need to create a Product dynamically.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thank you, @whole depot
I'm writing a simple ASP.NET MVC 4.8 app to test it against a test account on Stripe
If I have more code questions, can I ask them here or create another item in the #help area?
You can ask them here if the thread is still open, but we tend to close them after about 15-20 mins of inactivity. If the thread is closed you're welcome to use #help to start a new one.
For a .NET Framework 4.8 app, where do I set the secret key when using the hosted payment option (iframe)?
This is from the example here: https://docs.stripe.com/checkout/embedded/quickstart
The secret key there goes in your server-side secret store. It's hard to say exactly where, as that will depend on how you've structured your stack and where you store your secret keys.