#connor11528

1 messages ยท Page 1 of 1 (latest)

solid jettyBOT
weary patrol
#

๐Ÿ‘‹

#

How are you checking the balance of your test account?

#

Are you using the Stripe Account header when making this API call?

dim coral
#

yes I am using the Stripe PHP SDK

weary patrol
#

K can you share the account ID that you are retrieving the balance for?

dim coral
#

yes one sec..

weary patrol
#

Overall you can always just use a test card that creates available balance immediately.

#

Checking on whether we provide a way to test for instant payouts with using a pending (but instant_available) balance

#

Don't recall on that front

dim coral
#

This is the Initech account shown above: acct_1CwqmkDvUNZY4cr3

#

This is the code I was using to check balance and create instant payout. To give myself enough money I was going through Stripe dashboard -> Payments -> Create payment

shop_setting_set('stripe.custom.stripe_user_id', $initech);
$stripeUserId = shop_setting('stripe.custom.stripe_user_id');


\Stripe\Stripe::setApiKey(config('services.stripe.secret'));

$balance = \Stripe\Balance::retrieve(
  ['stripe_account' => $stripeUserId]
);

$payout = \Stripe\Payout::create([
  'amount' => 1,
  'currency' => 'usd',
  'method' => 'instant',
], [
  'stripe_account' => shop_setting('stripe.custom.stripe_user_id'),
]);
weary patrol
#

Got it. That all looks fine.

#

So when you create the payment via your Dashboard, use this card: 4000000000000077

#

That will bypass the pending balance and add to your available balance

#

Then you can transfer that to your Connected Account and create an Instant Payout

dim coral
#

okay. ya balance looks good now! It took a couple days to clear though which stinks in test mode. Makes sense I will use that card then funds will be available immediately in test mode ๐Ÿ™‚

weary patrol
#

Yep!