#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/1225393410383413302
๐ 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, 22 minutes ago, 37 messages
- akashpatil7596_api, 2 hours ago, 49 messages
- akashpatil7596_api, 19 hours ago, 10 messages
- akashpatil7596_api, 22 hours ago, 32 messages
- akash_subscription-refund, 23 hours ago, 37 messages
- akashpatil7596_api, 1 day ago, 14 messages
and 3 more
No Assign me Someone
Hi, let me help you with this.
Could you please share the Request ID req_xxx? https://support.stripe.com/questions/finding-the-id-for-an-api-request
req ID? Can I share subscription ID, I don't know req ID
sub_1P1nSBIoZDVxPDheVrNpTRP8 here is sub id
Hello
You shared the error - StripeInvalidRequestError, it must have a Request ID with it.
Where do you see the error exactly?
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.
But the customer has 979.00 credit in their account, So I try to refund it all
Hello
Please stop rushhing me and my colleagues, it's been 2 minutes since your last message.
Okay, sorry
But the Refund is related not to the balance, but to the individual Charges.
You can't refund more than the amount of the Charge that you provided. But you can make multiple Refunds instead.
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)
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.
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?
no, there is not, that is what I just explained.
Can I do the refund with passing payment_intent instead of charge_id, will that do the job?
try it and see ๐
Okay, but how can I get payment Intent, is it mentioned in invoice list?
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.
look at the API reference for the Invoice object ๐ https://docs.stripe.com/api/invoices/object#invoice_object-payment_intent
Okay, can you add @surreal wagon to this thread please?
No thanks