#zelda.zonk

1 messages ยท Page 1 of 1 (latest)

hoary pantherBOT
unborn cloak
#

can you describe you use case in more detail? Like what are you collecting payment for? is it a subscription or a one time payment?

stable hamlet
#

user buys a gift card product lets say $100 gift card. user recieves promotion code. then they can use that promo code on future checkouts to cover all or part of cart total. they cart could be one time payment or susbcription.

unborn cloak
#

we don't really have any documentation about such a flow specifically. You'll first need to decide how you want to collect payment - are you using Checkout or Payment Element? If you use Checkout Sessions, it supports coupons created by Stripe. If you use Payment Element, you'll have to implement your own coupon logic cause it doesn't support accepting coupons

stable hamlet
#

ill be using payment element, as stripe checkout doesnt allow $0 checkouts correct? (in the event coupon covers total cart cost)

#

i created a $100 coupon and used Stripe Checkout with one product $100 and tired to use coupon code and it wouldnt let me.

#

but $90 coupon code worked.

#

this is intended behavior yes?

hoary pantherBOT
indigo swan
#

Can you share the Checkout Session ID (cs_xxx) and the promotion code?

stable hamlet
#

damn, sorry i cant right now. but is this intended behavior, can u use stripe checkout with a coupon code that reduces the total to $0 ?

#

so $100 is price id and coupon code for $100

#

?

indigo swan
#

Thanks for waiting! Discord is busy now

stable hamlet
#

ok

indigo swan
stable hamlet
#

thats what i thought, so i cant use stripe checkout - thats fine

indigo swan
#

When 100% promotion code is applied, the limit restriction doesn't meet

stable hamlet
#

what do you mean the limit restriction doesn't meet?

indigo swan
#

When 100% off discount, the final amount will be $0 that doesn't minimum charge amount

stable hamlet
#

so when using Stripe Checkout, can you use 100% off discount or not?

indigo swan
#

No, 100% off discount can't be used on Checkout Session

stable hamlet
#

when can it be used then?

indigo swan
#

It can only be used with Billing products such as Invoicing and Subscription

stable hamlet
#

right ok thanks. if you create a coupon with a fixed amount, can you update that amount later using the api?

indigo swan
#

Nope! After the coupon is created, the amount can't be updated

stable hamlet
#

ok thanks

indigo swan
#

No problem! Happy to help ๐Ÿ˜„

stable hamlet
#

when adding credit balance to a customer, will that credit be automatically used in a customers subscription?

indigo swan
stable hamlet
#

ok great, but if user instead just does one-time payment credit balance isnt used, so only used in subscriptions / invoices ?

indigo swan
#

Yup! For one-time payment, credit balance won't be applied

stable hamlet
#

ok great, what if customer has more than one subscription, will balance be used over all subscriptions until balance reaches $0?

indigo swan
#

Yes, it will be applied to the invoices until the balance reaches $0

stable hamlet
#

-- also can you use balance for one-time payments if u wanted to? i asked before if it automatically did.

#

so when creating payment intent you would deduct from balance

indigo swan
#

Credit balance can only be used in Invoice and Subscription. For one-time payment created from Payment Intent directly or Checkout Session, credit balance can't be applied

stable hamlet
#

ok thanks for clarification ๐Ÿ™‚