#connor11528
1 messages ยท Page 1 of 1 (latest)
๐
How are you checking the balance of your test account?
Are you using the Stripe Account header when making this API call?
yes I am using the Stripe PHP SDK
K can you share the account ID that you are retrieving the balance for?
yes one sec..
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
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'),
]);
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
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 ๐
Yep!