#shree-harsha_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/1242397899342610514
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
You can follow this guide:
https://docs.stripe.com/payment-links/create?pricing-model=customer-chooses
Or if you want to use Checkout:
https://docs.stripe.com/payments/checkout/pay-what-you-want
From this docs link https://docs.stripe.com/payment-links/api#product-catalog under Customer chooses price section it still asks for product_id and we want to send a fixed custom amount from the server.
We don't have fixed products. With suggested ways for every custom amount, I have to keep on creating products.
Are you always going to be automatically generating individual links for your customers?
If so, you should use Stripe Checkout, and use Session.items.price_data.amount to set the amount dynamically, without pre-creating the Prices.
I would always add the amount dynamically. I will try that. Thanks
Happy to help.