#eoghanobrien_best-practices

1 messages ¡ Page 1 of 1 (latest)

cloud lakeBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1245417853096562700

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

jaunty pelican
jolly iris
#

I'm using this right now, this can create a negative amount though right, or a scenario where we pay the customer, how do I deal with that?

jaunty pelican
#

Not sure I understand, can you give me a specific example?

jolly iris
#

Okay

#

We have price IDs of different amounts

#

price_123 is 29.00 and price_345 is 69.00

#

we have a customer on a subscription plan using price_345

#

they want to downgrade their plan to price_123

#

They downgrade immediately after purchasing price_345

#

now we owe them 40.00

#

how does Stripe handle that credit

jaunty pelican
jolly iris
#

got it, so we never send the customer any payout, they can only apply that credit to future products?

jaunty pelican
#

Yep.

#

Future Invoices, specifically.

jolly iris
#

so at the end of the cycle, their next payment would be 0.00 but they'd still have a credit of 11.00

jaunty pelican
#

Correct.

jolly iris
#

their next payment would be 18.00 and their credit would be 0.00

jaunty pelican
#

Yep.

jolly iris
#

and all of this is automatically handled via the Stripe credit balance system

jaunty pelican
#

Yes.

jolly iris
#

If a customer decided they wanted the difference back as a refund, is that possible?

jaunty pelican
#

So you would get the money back to the Customer and then adjust their balance accordingly.