From fcb087f3bb60598e0f7df65e62a9fe7db0952faa Mon Sep 17 00:00:00 2001 From: Arthur Nassar <98289378+arthurnassar@users.noreply.github.com> Date: Tue, 9 Jul 2024 18:19:10 +0100 Subject: [PATCH] update stripe balance call (#1) this call was returning errors because the first argument should be the balance $params and stripe_account would be the always the second argument --- src/Traits/Payable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/Payable.php b/src/Traits/Payable.php index d24571b..56f9993 100644 --- a/src/Traits/Payable.php +++ b/src/Traits/Payable.php @@ -83,7 +83,7 @@ public function transfer($amount, $currency): Transfer public function getAccountBalance(): Balance { - return static::$stripe->balance->retrieve([ + return static::$stripe->balance->retrieve([], [ 'stripe_account' => $this->getStripeAccountId(), ]); }