#lukez_api
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/1310517932333469770
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- lukez_best-practices, 5 days ago, 11 messages
Yes you need to implement it in your app, or consiser using pricing table https://docs.stripe.com/payments/checkout/pricing-table
aah okay, well currently I don't have a dashboard where people have a GUI - but it's planned ^^
Also, a bit unrelated but I can't create a new thread, I've tried to create a checkout session according to the docs but it's giving me an error Missing required param: success_url.
I thought I don't need any success url?
hi! I'm taking over this thread.
yes success_url is mandatory when creating a Checkout Session
oh, but it says "nullable" - does that only mean that it has to be given but can be null?
-> I tried it and it said that it cannot be an empty string (I supplied null now).
I don't have a GUI at the moment, is there any way around this?
this is explained here: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-success_url
This parameter is not allowed if ui_mode is embedded
set it to https://www.example.com
sure, but do you plan to use embeded Checkout?
then I recommend using success_url: https://www.example.com/, and you'll change it later
oh I just saw that the ui mode hosted refers to Stripe not me
correct
but then the customer gets redirected to example.com 
Well, I guess I have to make a static success page for that then
but then the customer gets redirected to example.com :OMEGALUL:
I mean you can use this for testing purposes. once you show it to customer, you have to use a real URL you own yes.
yikes. okay, thank you then ^^
I also got another question for that - is it possible to make a sort of "dynamic pricing table" with metadata for example?
what does that mean concretely?
well, I'm building a stripe integration for my Discord bot and I need to store the related guild and user id metadata in the checkout metadata. Is it possible to also attach metadata via the API to a pricing table?
Of would I have to embed it and not use the stripe-hosted version?
got it, but no that's not possible to set metadata when using the Pricing Table.