#akashpatil7596_api

1 messages ยท Page 1 of 1 (latest)

warm pollenBOT
#

๐Ÿ‘‹ 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.

shrewd basaltBOT
#

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.

slate thorn
#

hi there!

#

are you a developer building a Stripe integration, or a user trying to buy something online?

austere hill
#

I'm a developer

slate thorn
#

can you share a Subscription ID (sub_xxx) where this happened so I can have a better look?

austere hill
#

sub_1P14bxIoZDVxPDheUcaFsKXD

slate thorn
#

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

austere hill
#

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

slate thorn
#

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
austere hill
#

So they won't be charged anything for current bill?

slate thorn
#

what do you mean?

austere hill
#

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

slate thorn
#

for the next invoice, that user will be charged 1299, which includes the proration and the new price

austere hill
#

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?

slate thorn
#

if you want to send a refund, instead, that's something that you'll have to handle yourself by creating a refund

austere hill
slate thorn
#
  1. that's something you'll have to compute yourself since you are not use Stripe default behavior
  2. I recommend setting payment_intent instead of charge. also this will refund the full amount, if you want a partial refund you have to add the amount parameter
austere hill
#

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?

slate thorn
#

yep

austere hill
#

There isn't any method with stripe that can do calculations for me? ๐Ÿ˜Ÿ

#

Cause It's accurate with Stripe.

shrewd basaltBOT
rugged ermine
#

๐Ÿ‘‹ 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

#

if you are you can actually just check the customer's credit balance and refund the amount there

austere hill
rugged ermine
#

?

#

actually I was discussing your case with my colleague and (I haven't time to test this) but he's confident you can use the latest_invoice's charge to refund the customer