#binaryruel

1 messages · Page 1 of 1 (latest)

robust tigerBOT
glad dawn
#

Hi there

#

So you created a top up in test mode?

silk sphinx
#

Yes, just to make my condition pass.

glad dawn
silk sphinx
#

But I'm getting zero atm

glad dawn
#

How did you create the top up exactly?

silk sphinx
#

Exactly like the tutorial you gave me

glad dawn
#

Okay and when you retrieve your balance what do you see?

#

Do you see the top up amount as pending?

#

Or not in your balance at all?

silk sphinx
silk sphinx
glad dawn
#

Can you provide me the ID for the top up?

silk sphinx
glad dawn
#

That works

#

Looking

silk sphinx
#

this is my code in live

if ($balance->available[0]->amount > 0) { to check if there is available balance before I refund

glad dawn
#

Ah okay yeah so you are topping up your refunds/disputes balance. Not your Connect Balance. This is what happens when you use that method in your Dashboard.

#

So yeah that won't work for what you are trying to do

#

You just create a Charge with one of those cards

robust tigerBOT
silk sphinx
#

So am I doing it right? I can deploy this code to production?

#

What do I need to do to prepare the live account?

glad dawn
#

Let's back up

#

Are you just trying to do some testing where you want available balance?

#

Or you are going to use top ups in your integration to fund your available balance and need to test that specifically?

glad dawn
#

Then yeah just use one of the test cards above. Don't use top ups the way you are doing now.

silk sphinx
#

I'm trying to do refund to payment intents, but there's an error that pops-up that says insufficient balance. However, the refund (partial and full) are still being recorded.

#

That's why I need to check if there's a balance first in the available object.

#

Is this the right direction?

silk sphinx
red edge
#

👋 catching up since my teammate needs to run. Can you share the full error you're receiving when you try to create a refund?

silk sphinx
#

it says error 16

red edge
silk sphinx
#

Insufficient balance

red edge
#

Any chance you can grab the request ID? It should start with req_

silk sphinx
#

That was awhile ago, that's why I need to check the available amount first, before I do the refund?

#

So my ultimate question is, is this the right path?

  • Check if there are some available balance amount.
  • Do the refund
red edge
#

Yes, that's the right path. You can also only refund up to the total charge amount (not more)

#

So, for example, if you have a $10 charge, you can refund up to $10 only

silk sphinx
#

Okay thanks. What will I say to my client and what will they do in case there's no amount in their available object?

#

so that the actual refund will commence?

red edge
silk sphinx
#

It's disabled on live and in test

#

I mean not active

red edge
#

Not sure I follow. Can you reword your question?

silk sphinx
#

not active yet

#

will that work fine?

#

Also, right now in their live dashboard, here's the amounts.

Which there is the available balance amount?

silk sphinx
red edge
#

Okay, it's really hard to follow your questions

#

The first screenshot means the Stripe account you're logged in as is not yet a Connect platform

silk sphinx
#

What if I check the amount of the pending object? Will it technically work?

red edge
#

I'm still unclear on my code will work seemlessly. I'm still not sure what exactly you're trying to do. If you plan on using Connect then yes, click on "Get started with Connect". Then, you can start creating test Connected accounts to play around with any code you have. This resource should be helpful for your testing: https://stripe.com/docs/connect/testing