#whited-swang_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/1503277513667903638
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
I also created a payment link in Stripe dashboard and it was able to successfully apply the discount code there. But the same code does not work in the checkout session.
Can you share the request ID (req_xxx) of the error? Here’s how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Each API request has an associated request identifier, e.g. req_123456789. How do I find the ID for an API request? You can find a log of API requests…
Sure, i think this is the relevant ID req_Dh3ipl7rzWIxNW
Based on req_Dh3ipl7rzWIxNW, the Checkout Session (Stripe hosted payment page) was created successfully.
What is the promo code you attempted to apply, so that I can reproduce the error?
The promo code I tried to apply was "VIP555" ( Without the quotation marks )
The error was due to "This promotion code cannot be applied because it reduces the total below the minimum charge amount. https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts"
The final amount after the discount is below the minimum charge amount that Stripe accepts
Okay - it was my understanding that Stripe allowed you to do $0 transactions in checkout sessions. Is this not correct?
I was previously looking at this page: https://docs.stripe.com/payments/checkout/no-cost-orders
What is the discount amount / percentage of this promo code? Is this 100% off?
In https://docs.stripe.com/payments/checkout/no-cost-orders:
You must be on API version 2023-08-16 or later to process no-cost orders using the Checkout Sessions API.
However, https://dashboard.stripe.com/acct_1RGX6c07VSF8mzuZ/logs/req_Dh3ipl7rzWIxNW was created on older API version (2022-11-15)
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Aha okay. Could you direct me to how I can update my API?
Stripe doesn't own "Run Payments with Stripe" officially as mentioned in https://extensions.dev/extensions/stripe/firestore-stripe-payments, and we don't know how the extension implementation works. I'd recommend checking with the extension maintainer on how to update the API version.
Ok I see. I thought it was updated to a recent version but I guess it isn't. Thanks for your help!
No problem! Happy to help 😄