#akashpatil7596_api
1 messages ยท Page 1 of 1 (latest)
๐ 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/1224672076498206801
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- akashpatil7596_api, 3 hours ago, 35 messages
- akashpatil7596_webhooks, 5 days ago, 15 messages
- akashpatil7596_webhooks, 6 days ago, 7 messages
hi there!
are you a developer building a Stripe integration, or a user trying to buy something online?
I'm a developer
can you share a Subscription ID (sub_xxx) where this happened so I can have a better look?
sub_1P14bxIoZDVxPDheUcaFsKXD
thanks! give me a few minutes to look into this.
are you talking about the upcoming invoice? I feel like this is pretty clearly explained in the dashboard
No I do not understand,
If I move from 19.99/month to 999.99/year
999.99
-- 19.99
980.00 -> current bill
next invoice 999.99
If I move from 699.99/year to 999.99/year
999.99
-- 699.99
300.00 -> current bill
next invoice should be 999.99 But there is 1299.90
the upcoming incoice shows both:
- the proration, that's 999-699 = 300
- and the new price, that's 999
if you add both, that's 300 + 999 = 1299
So they won't be charged anything for current bill?
what do you mean?
But Why this is different in
If I move from 19.99/month to 999.99/year
999.99
-- 19.99
980.00 -> current bill
next invoice 999.99
for the next invoice, that user will be charged 1299, which includes the proration and the new price
you can learn more on how this works here: https://docs.stripe.com/billing/subscriptions/prorations
Okay, Thanks. Now can you help me with some other thing?
If User downgrade from 999.99/year to 699.99/year or 19.99/month, I want to give the refund back to user in their bank account or anything.
How can I acheive that?
by default, we add credits to user when downgrading as mentioned here: https://docs.stripe.com/billing/subscriptions/upgrade-downgrade#credits-for-downgrades
if you want to send a refund, instead, that's something that you'll have to handle yourself by creating a refund
1).
Okay If User downgrading from 999.99/year to 19.99/month after 6 months of usage , I have to give him 490 back, does stripe will calculate it Or I have to do calculations manually?
2).
By passing only the charge ID into this API will give the users money back? Or do I have to pass some other params too?
- that's something you'll have to compute yourself since you are not use Stripe default behavior
- I recommend setting
payment_intentinstead ofcharge. also this will refund the full amount, if you want a partial refund you have to add theamountparameter
Ok So I have to count how much money I have to refund By doing manual calculations and then pass the payment_intent and refunded amount as amount in the API?
yep
There isn't any method with stripe that can do calculations for me? ๐
Cause It's accurate with Stripe.
๐ taking over for my colleague. Let me catch up.
you need to contact https://support.stripe.com/?contact=true to see whether you're eligible for a beta feature called unlinked refunds
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
if you are you can actually just check the customer's credit balance and refund the amount there
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.