#trueinviso
1 messages · Page 1 of 1 (latest)
Unfortunateky not. Stripe isn't set up to create giftcards. There would still need to be a valid Payment Method in order for the payment to go through with a coupon
That's not really what I'm asking tho, I'm wondering how I can reduce the price they pay in checkout here:
I tried to set the amount manually here, but I get an error that I can't specify amount and price in the line item, it's one or the other
is it possible to add an additional line item at the end with a credit?
You can add a negative Invoice Item: https://stripe.com/docs/api/invoiceitems/create
Or you can add a coupon that will effect the next Invoice: https://stripe.com/docs/api/coupons
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Not sure if that answers your question though
What's the difference between a coupon and a discount?
A discount represents the actual application of a coupon or promotion code. It contains information about when the discount began, when it will end, and what it is applied to.
so the only recommended way to reduce the price at checkout is with a coupon?
I'm sure there are other developers who have asked about dynamic pricing on discounts in the past, is there a recommendation on how to handle that?
For Subscriptions, yes. Or (like I said) you can create a negative Invoice Item on the Subscription's most recent Invoice. That's for existing Subscriptions.
For new Subscriptions, there's a bunch of other ways to do that, so it will depend on your integration specifics.
Well for new subscriptions I'm using stripes "CheckoutSession", what ways are available for that? I'm ok with the negative invoice item for existing subscriptions
You either create a new Price for every Checkout Session by specifying line_items.price_data or you pre-create a Price and pass it's ID into the Checkout Session's line_items.price
right, but the question is how to discount the new subscription?
we have pre-existing prices and wouldn't want to create new ones
so currently line items are set up like this in the checkout session
You can add a trial, coupon, or negative invoice item
This is all documented pretty extensively, so I would recommend reading through this guide before coming back with more questions: https://stripe.com/docs/billing/subscriptions/coupons
The bottom of that page outlines some of the other options
If I use a coupon for every gift card, isn't that going to clutter up our admin with thousands of records?
Please read the documentation. If you did, you'd know that you can have 1 Coupon represent an infinite amount of Discounts
I have already implemented coupons for various types of discounts we have on the platform so I guess I'm missing something you are trying to communicate to me.
we have all these coupons, for example, but you can't create a coupon with a dynamic amount, so that means for gift cards you would need to create a new coupon for each gift card purchase right?
That's correct. In this case you'd have tons of Coupons.
Like I said before, Stripe doesn't have support for gift cards. You're trying to do something that Stripe doesn't have a solution for, so my help is limited here.