#pradeep-gururani_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1247858020910759997
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
hi!
can we apply a stripe coupon or stripe discount code to a product only ?
https://docs.stripe.com/api/coupons/create#create_coupon-applies_to
if yes then how we can see applied coupon on stripe dashboard or how we can check the redemption number?
should be on the Dashboard page for the coupon object.
when we apply a coupon then price is deducted after discount
but we're not able to see the redemption anywhere in the dashboard
when we apply stripe coupons or discount code with our subscriptions (that we created at the end of stripe) then we can usually see the redemption number under coupon or discount code respectively, but when we apply the coupon or discount code with product (that does not recurrent and apparently stripe charges the discounted price) then we don't see any redemption under coupon or discount code. I need to understand if there is an issue with our integration or stripe does not display any info about redemption of coupon or discount code if they applied to a product.
as ar as I know we do show that(but this chat is really about the API, not Dashboard-behaviour specifics)
if you're seeing otherwise please provide an example so we can investigate what might be happening , it's likely easiest to open a support ticket at https://support.stripe.com/?contact=true and share screenshots/links/object IDs
we have the following test mode redemptions for this [coupon]
https://dashboard.stripe.com/test/coupons/MARCELLO30
sample payment 1 for the above coupon
https://dashboard.stripe.com/test/events/evt_1POGLMEUdH8iAtR7nPlbvkjo
payment 2 (charge)
https://dashboard.stripe.com/test/payments/pi_3POEtQEUdH8iAtR70Rcv8f4Q
here in the second one, we don't see the discount object
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Coupons don't work with one-time payments created outside of Checkout such as that intent you shared. They only work on recurring payments, one-time invoices or Checkout
could you please share some documentation link ragarding that
we're not using the stripe checkout flow, we're having a custom integration, is it same for that also ?
Yes, as the table explains. The 'custom flow' does not support coupons/discounts for one-time payments
but I see in the same page its showing support for discount and coupons
Check the footnotes:
Available for Subscriptions & Invoices only.
Yes you can create an Invoice and apply the coupon: https://docs.stripe.com/invoicing/integration
is there a workaround to handle coupons with charges ?
I don't know what you mean
we have a product with price 99.99 and when we apply coupon with same integration that we use with Subscriptions, apparently charges after discount, like : 89.99
here's the event id
https://dashboard.stripe.com/test/events/evt_3POEtQEUdH8iAtR70ZLX1stp
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Yeah, seems expected as Coupons work with Subscriptions
But you can't apply the Coupon directly to a Payment Intent/Charge you create via the API
If you want to use a Coupon with a one-time payment, you'd use an Invoice
but this event I shared is for a charge, and it apparantly is charging 89.99 instead of the original price 99.99 and the price is reduced as per the copon's discount percentage
Yes, because we apply the discount internally to the underlying charge/payment as part of the subscription process
There's no API/parameter to do that
you mean in the paymentIntent flow ?
Yes
okay, thanks a lot for your help ๐