#zelda.zonk
1 messages ยท Page 1 of 1 (latest)
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?
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.
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
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?
Can you share the Checkout Session ID (cs_xxx) and the promotion code?
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
?
Thanks for waiting! Discord is busy now
ok
Stripe has minimum change limit: https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts
thats what i thought, so i cant use stripe checkout - thats fine
When 100% promotion code is applied, the limit restriction doesn't meet
what do you mean the limit restriction doesn't meet?
When 100% off discount, the final amount will be $0 that doesn't minimum charge amount
so when using Stripe Checkout, can you use 100% off discount or not?
No, 100% off discount can't be used on Checkout Session
when can it be used then?
It can only be used with Billing products such as Invoicing and Subscription
right ok thanks. if you create a coupon with a fixed amount, can you update that amount later using the api?
Nope! After the coupon is created, the amount can't be updated
ok thanks
No problem! Happy to help ๐
when adding credit balance to a customer, will that credit be automatically used in a customers subscription?
From https://stripe.com/docs/billing/customer/balance#details:
The credit balance automatically applies toward the next invoice finalized to a customer.
So yes, it will be added to the next invoice of the Subscription automatically
ok great, but if user instead just does one-time payment credit balance isnt used, so only used in subscriptions / invoices ?
Yup! For one-time payment, credit balance won't be applied
ok great, what if customer has more than one subscription, will balance be used over all subscriptions until balance reaches $0?
Yes, it will be applied to the invoices until the balance reaches $0
-- 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
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
ok thanks for clarification ๐