PHPackages                             waltersilvacruz/laravel-quickbooks-payments - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. waltersilvacruz/laravel-quickbooks-payments

ActiveLibrary[Payment Processing](/categories/payments)

waltersilvacruz/laravel-quickbooks-payments
===========================================

PHP client wrapping the QuickBooks Payments SDK.

1.0.1(4y ago)1491MITPHPPHP &gt;=7.2

Since Aug 11Pushed 4y ago1 watchersCompare

[ Source](https://github.com/waltersilvacruz/laravel-quickbooks-payments)[ Packagist](https://packagist.org/packages/waltersilvacruz/laravel-quickbooks-payments)[ RSS](/packages/waltersilvacruz-laravel-quickbooks-payments/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Laravel QuickBooks Payments Client
==================================

[](#laravel-quickbooks-payments-client)

Based on [SPINEN's Laravel QuickBooks Client](https://github.com/spinen/laravel-quickbooks-client)

PHP client wrapping the [QuickBooks Payment SDK](https://github.com/intuit/PHP-Payments-SDK).

This package was designed to work with [Laravel](https://www.laravel.com), so this package is written with Laravel in mind.

Installation
------------

[](#installation)

1. Install Laravel QuickBooks Payments:

```
$ composer require waltersilvacruz/laravel-quickbooks-payments
```

2. Run our migration to install the `quickbooks_tokens` table:

```
$ php artisan migrate --package=waltersilvacruz/laravel-quickbooks-payments
```

The package uses the [auto registration feature](https://laravel.com/docs/packages#package-discovery) of Laravel.

Configuration
-------------

[](#configuration)

1. Add the appropriate values to your `.env`

    #### Minimal Keys

    [](#minimal-keys)

    ```
    QUICKBOOKS_CLIENT_ID=
    QUICKBOOKS_CLIENT_SECRET=
    QUICKBOOKS_SANDBOX_CLIENT_ID=
    QUICKBOOKS_SANDBOX_CLIENT_SECRET=
    ```

    #### Optional Keys

    [](#optional-keys)

    ```
    QUICKBOOKS_API_URL= # Defaults to App's env value
    QUICKBOOKS_DEBUG=               # Defaults to App's debug value
    QUICKBOOKS_REDIRECT_ROUTE=          # A named route to force redirect after disconnecting
    ```
2. *\[Optional\]* Publish configs &amp; views

    #### Config

    [](#config)

    A configuration file named `quickbooks_payments.php` can be published to `config/` by running...

    ```
    php artisan vendor:publish --tag=quickbooks-payments-config
    ```

    #### Views

    [](#views)

    View files can be published by running...

    ```
    php artisan vendor:publish --tag=quickbooks-payments-views
    ```

Usage
-----

[](#usage)

Here is an example of getting the company information from QuickBooks:

```
$quickbooks = app('QuickBooksPayments');
$array = [
  "amount" => "10.55",
  "currency" => "USD",
  "card" => [
      "name" => "emulate=0",
      "number" => "4111111111111111",
      "address" => [
        "streetAddress" => "1130 Kifer Rd",
        "city" => "Sunnyvale",
        "region" => "CA",
        "country" => "US",
        "postalCode" => "94086"
      ],
      "expMonth" => "02",
      "expYear" => "2024",
      "cvc" => "123"
  ],
  "context" => [
    "mobile" => "false",
    "isEcommerce" => "true"
  ]
];
$response = $quickbooks->getService()->Charge()->create($array);
dd($response);
```

Middleware
----------

[](#middleware)

If you have routes that will be dependent on the user's account having a usable QuickBooks OAuth token, there is an included middleware `WebDEV\QuickBooks\Payments\Http\Middleware\Filter` that gets registered as `quickbooks_payments` that will ensure the account is linked and redirect them to the `connect` route if needed.

Here is an example route definition:

```
Route::view('some/route/needing/quickbooks/token/before/using', 'some.view')
     ->middleware('quickbooks_payments');
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

2

Last Release

1733d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bff226d629697b9cf437a47750985c5be36c2c457ea46aa7537d6a00114ed20d?d=identicon)[waltersilvacruz](/maintainers/waltersilvacruz)

---

Top Contributors

[![waltersilvacruz](https://avatars.githubusercontent.com/u/1936564?v=4)](https://github.com/waltersilvacruz "waltersilvacruz (8 commits)")

---

Tags

clientlaravelpaymentsquickbookswebdev

### Embed Badge

![Health badge](/badges/waltersilvacruz-laravel-quickbooks-payments/health.svg)

```
[![Health](https://phpackages.com/badges/waltersilvacruz-laravel-quickbooks-payments/health.svg)](https://phpackages.com/packages/waltersilvacruz-laravel-quickbooks-payments)
```

###  Alternatives

[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)[a17mad/laravel-cybersource

This package wraps the Cybersource SOAP API in a convenient, easy to use package for Laravel.

136.8k](/packages/a17mad-laravel-cybersource)[itsmurumba/laravel-mpesa

Laravel Package for Mpesa Daraja API

191.6k](/packages/itsmurumba-laravel-mpesa)[threesquared/laravel-paymill

Laravel wrapper for the Paymill API

121.3k](/packages/threesquared-laravel-paymill)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
