#Naveed | Web3Auth
1 messages · Page 1 of 1 (latest)
And is there such a thing as subscription-specific credits and customer-specific credits or are credits necessarily tied to the Stripe customer entity.
customer credit only ties on Customer. If you want to limit by specific Product, I would recommend coupon
The disadvantage of coupon is that if invoice is $20 and coupon is $50, it gets used up entirely
so we want our customers to redeem a code and get credited $50 instead which can be applied granularly to offset invoices
So you want your customer still discount $20 and left 30$ for next time Invoice, but limited to a specific Invoice product?
oh not limited to specific invoice
limited to specific product in invoice
cuz in a subscription u can have multiple products u are being billed for
so the 30 remaining would apply to next invoice and so on until it gets used up
So this is something Stripe supports out of the box
however, some interesting business requirements i have to implement where i have to make it apply to only product X in the invoice
its similar to product-specifc discount coupon
im thinking im going to have to play around with credit notes or something and apply per-product coupon behind the scenes
You can make the coupon only specific to eligible products by setting its applies_to
indeed, but coupon is different from our credit use casae
cuz it doesnt apply granularly
it always gets used up entirely
even if invoice amount to offset is say 20 but coupon is 50
I see... Looks like each solution lacking one aspect. I think you can try using discount, but manage the "total amount" by your logic and only generate corresponding small discounts for each Invoices you calculated
The other way around, like trying to use Customer Credit Balance and somehow try to limit product each time it got applied, doesn't sound possible
Credit Notes works if you can limit the product and also calculate the amount each time by yourself
Yes... thanks for your help just wanted to confirm that I wasn't missing out on anything before building the system myself.
Credit notes where I set the amount to be exactly the price of Product X (or less depending on no. of credits) seems to be a good way forward.
The other approach of creating discount coupons every month for the price of Product X and then deducting customer credit balance the discounted amount seems to be a lot more complicated
oh i wonder though will i have to fight against the system to implement this
because stripe automatically applies customer credits to next invoice
automatically apply customer credit balance yes, but with credit notes you can apply whenever you want
what i mean is that there doesnt seem to be any way to prevent customer credit balance from being auto applied by stripe to entire invoice
"The credit balance automatically applies to the next finalized invoice to a customer.
You can’t choose a specific invoice to apply the credit balance to."
Yes true, that's why the "other way around" I mentioned earlier doesn't work
But if you are going with Credit Notes then it should be fine
Credit Notes: https://stripe.com/docs/invoicing/dashboard/credit-notes
i have some doubts on whether credit note approach would work or not
Say I Have the following invoice
Product X $20
Product Y $100
Total $120
My credits: 100
I issue a credit note of 20 to above invoice so now it becomes
Product X $20
Product Y $100
Discount -$20
Total: $120$100
My credits now: 100 80
This seems alright however what i think would happen in reality is
the credit note gets applied AND all my remaining 80 credits of balance
so itll be credit note Adjustment + my remaining credit balance get auto applied
I guess, im not sure
trying to understand this part of the docs here https://stripe.com/docs/invoicing/dashboard/credit-notes#customer-balances-discounts
Credit Note is per Invoice. When you create $20 credit notes you will specify the Invoice of Product Y
That part is about "over credit note" on an Invoice that has customer credit note before. Since you are not over-credit note any Invoice, I think it wouldn't apply
Best is to try in Test mode
oh but in my case per-invoice, multiple products can be in same invoice
The issue really is that I expect that my credits + credit note would both be auto-applied
first credit note of 20 would offset 20 off the invoice
then the total 120 -> 100
my credits would then be autoapplied to this discounted amount
which is not what i want
obviously other approaches are to create multiple subs, but multple subs means multiple invoices
When you say "my credits" is that something you manage on your system?
nope its stripe credits
so in the above case the scenario we want is only that your credits are offseting only product X
but what i expect stripe is going to do is that it will always apply my credits to invoice
So instead of
My credits: 100
Product X: 20
Product Y: 80
Expected remaining credits (via credit invoice of 20 for discounting product X) -> 100 - 20 = 80
what would actually happen is that the remaining 80 dollars would be further discounted by my credit balance
which is not what we want here
I am confused. If you are using Stripe's customer credit balance, then it won't distinguish between products at any given time. How would you define that
Product X: 20
Product Y: 80
?
yes i mean stripe would never distinguish between products
I thought you just have a credit system yourself and manage it
if i credit them stripe balance it would always apply to entire invoice
true, and that's the reason why we want to not use credit balance in this case
now that you mention it having our own internal credit system might actually be a much better option
so that way im just creating credit notes and deducting from our own database
at first i was thinking that i could use credit notes and thatd solve everything and no need to create our own solution
but it wont prevent stripe credits being auto added to offset
so ur right rolling out our own credit system would solve the auto-offset problem