#noah-classdojo_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/1245064730964656170
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! Payment Intents are low-level payment objects with no concept of Promotion Codes or other discounts. If you're handling discounts by modifying the amount on your end you should also be managing promotion codes/coupons/discounts on your end and not using Stripe's Promotion Codes at all.
If you want to use Stripe's Promotion Codes you need to use a high-level payment object, like an Invoice, or Checkout. See the short video here for further clarification: https://stripe.com/docs/payments/tour#payment-objects
Ok, thanks - the idea behind using stripe's system was to allow non-engineers access to creating/managing promo codes in the stripe dashboard, and to facilitate future migration away from payment intent. The workaround to adjust the amount works just fine, so I was hoping there was a simple API to just mark a code as redeemed, but I guess we'll need to come up with our own system. Thanks!