#trueinviso

1 messages · Page 1 of 1 (latest)

wintry forgeBOT
safe adder
#

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

timid canyon
#

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?

safe adder
#

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

#

Not sure if that answers your question though

timid canyon
#

What's the difference between a coupon and a discount?

safe adder
#

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.

timid canyon
#

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?

safe adder
#

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.

timid canyon
#

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

safe adder
#

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

timid canyon
#

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

safe adder
#

You can add a trial, coupon, or negative invoice item

#

The bottom of that page outlines some of the other options

timid canyon
#

If I use a coupon for every gift card, isn't that going to clutter up our admin with thousands of records?

safe adder
#

Please read the documentation. If you did, you'd know that you can have 1 Coupon represent an infinite amount of Discounts

timid canyon
#

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?

safe adder
#

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.