#anuroop_api

1 messages ¡ Page 1 of 1 (latest)

amber tokenBOT
#

👋 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/1222537761547096115

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

humble shoreBOT
#

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.

smoky juniperBOT
#

:question: Have a non-technical question, account issue, or need one-on-one support?
We wish we could help, but this community is focused on developers and technical discussions. Our support team will be able to assist you better than we can: https://support.stripe.com/contact

worldly gale
#

Hello @loud mauve sorry I had to step away earlier and couldn't reply back earlier

#

What we are trying to do, is credit the prorated refund back to the customer's defualt payment method

#

When I checked earlier about this, I was asked to

  1. cancel the subscription with prorate set to true
  2. Find the invoice that's created through this proration
  3. Finalize the invoice using invoice.pay() api
#

When we tried it, we did not see the credit applied back to the user's default payment method

loud mauve
#

Are you asking why a refund hasn't showed up to customer's payment method?

#

for the prorated amount?

worldly gale
#

Yes the statement doesn't reflect the credit applied yet

#

So the timeline is on Monday we have created a subscription using a credit card. We saw that charge on the credit card statement immediately
Next day we canceled the subscription with prorate set to true, found the prorate invoice and paid it.
Expected to see a credit on the statement for the prorated amount but do not see it yet

#

All this was done programatically using a one time script

loud mauve
#

I'd recommend talking to our support team about this as they're more familiar with how refunds are issued and can help look into this further

worldly gale
#

Is the idea correct though for refunding unused amounts on subscriptions?

loud mauve
#

I'm not really grasping your flow here. Can you expand on your example usecase here with amounts and such?

worldly gale
#

I can give you the subscription id and invoice IDs as well if you need it

#

Here is the flow though

loud mauve
#

Oh I think I see what you're trying to do here

#

Are you trying to refund $98.94 to customer as the prorated credit?

#

I believe it was added to customer balance instead

worldly gale
#

Okay doesn't it get refunded (credited) back to the original payment method? Since the subscription is now canceled?

#

How do we make sure it gets credited back to the default payment method?

#

We cant have that money as customer credit balance as they wont be able to sign up again.

loud mauve
#

Thinking..

worldly gale
#

Do I have to first invoice.pay to create credit balance and then find the credit balance, associated charge and call the refund API?

#

Is my understanding correct?

loud mauve
#

I believe so. The invoice that gets finalized is what credits the amount to the customer for the unused time.

worldly gale
#

Okay let me try that today.

#

Thanks for your help