#akashpatil7596_api

1 messages ยท Page 1 of 1 (latest)

silver rivetBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

unborn spearBOT
#

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.

quick plank
#

No Assign me Someone

unborn spearBOT
ornate swallow
#

Hi, let me help you with this.

quick plank
#

req ID? Can I share subscription ID, I don't know req ID

#

sub_1P1nSBIoZDVxPDheVrNpTRP8 here is sub id

#

Hello

ornate swallow
#

You shared the error - StripeInvalidRequestError, it must have a Request ID with it.

#

Where do you see the error exactly?

quick plank
#

req_mcgqj8cB25HzG4?t=1712226422

#

When I create refund

ornate swallow
#

The Charge was for 760, so you can't refund more than that. You need to find a different related Charge to refund the rest of the sum.

quick plank
#

But the customer has 979.00 credit in their account, So I try to refund it all

unborn spearBOT
quick plank
#

Hello

ornate swallow
#

Please stop rushhing me and my colleagues, it's been 2 minutes since your last message.

quick plank
#

Okay, sorry

ornate swallow
#

You can't refund more than the amount of the Charge that you provided. But you can make multiple Refunds instead.

quick plank
#

Okay, let me explain

1). customer first buys $239.99/year - charge is $239.00
2). then upgraded to $999.99/year, but the charge is $760.11
3). downgrade to $19.99/month, so the amount in customer's credit balance is now $980.00 , And then refund the amount $980, got this error:

StripeInvalidRequestError: Refund amount (ยฃ980.00) is greater than charge amount (ยฃ760.11)

hidden swallow
#

yeah, you just can't do that. The customer never payed $980, so there's nothing to refund that would be that much. You can't just give them real money for this. The best you can do is refund what they actually paid and keep the rest as a balance.

quick plank
#

I think when customer buys 19.99 plan , the rest amount 760 + 239 = 999 - 19.99 = 980, credited to their account. There isn't any way for refund the money?

hidden swallow
#

no, there is not, that is what I just explained.

quick plank
#

Can I do the refund with passing payment_intent instead of charge_id, will that do the job?

hidden swallow
#

try it and see ๐Ÿ™‚

quick plank
#

Okay, but how can I get payment Intent, is it mentioned in invoice list?

hidden swallow
#

I mean the answer is no, it makes no difference to the fact you can't magically refund a customer real money more than the actual real amount they paid.

quick plank
#

Okay, can you add @surreal wagon to this thread please?

hidden swallow
#

no.

#

any more questions @quick plank ?

quick plank
#

No thanks

hidden swallow
#

are you sure?

#

are you going to come back later to ask one of my colleagues? Why did you ask for Soma? You must have a question you wanted to ask them?