Commit 29afe6d4 authored by Marcelo Rivera's avatar Marcelo Rivera Committed by Mark Harding
Browse files

(fix): Argument 1 passed to Transactions\Manager::getByAccount() must be an...

(fix): Argument 1 passed to Transactions\Manager::getByAccount() must be an instance of account, null given
parent f07b9ced
Loading
Loading
Loading
Loading
+8 −1
Original line number Original line Diff line number Diff line
@@ -29,6 +29,13 @@ class transactions implements Interfaces\Api
            ]);
            ]);
        }
        }


        if (!$account) {
            return Factory::response([
                'status' => 'error',
                'message' => 'Stripe account not found',
            ]);
        }

        $transactionsManger = new Stripe\Transactions\Manager();
        $transactionsManger = new Stripe\Transactions\Manager();
        $transactions = $transactionsManger->getByAccount($account);
        $transactions = $transactionsManger->getByAccount($account);