PHPackages                             nguoingulanh/paypal-panel - 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. nguoingulanh/paypal-panel

ActiveLibrary[Payment Processing](/categories/payments)

nguoingulanh/paypal-panel
=========================

Payment paypal ...

04PHP

Since Mar 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/nguoingulanh/paypal-panel)[ Packagist](https://packagist.org/packages/nguoingulanh/paypal-panel)[ RSS](/packages/nguoingulanh-paypal-panel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Intro
-----

[](#intro)

- Get from paypal checkout sdk

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

[](#configuration)

To get started, you should publish the `config/paypal-panel.php` config file with:

```
php artisan vendor:publish --provider="PaypalPanel\ServiceProvider"

```

#### setup construct:

[](#setup-construct)

```
    public $client;

    public function __construct()
    {
        $paypalConfigs = config('paypal-panel');

        $env = new SandboxEnvironment($paypalConfigs['client_id'], $paypalConfigs['secret']);
        $mode = 'sandbox';

        //live
        // $env = new ProductionEnvironment($paypalConfigs['client_id'], $paypalConfigs['secret']);
        // $mode = 'live';

        $this->environment = $env;
        $this->client = new PayPalHttpClient($this->environment);
    }
```

#### Code:

[](#code)

```
use PaypalPanel\Order\OrdersCreateRequest;
$request = new OrdersCreateRequest();
$request->prefer('return=representation');
$request->body = [
                     "intent" => "CAPTURE",
                     "purchase_units" => [[
                         "reference_id" => "test_ref_id1",
                         "amount" => [
                             "value" => "100.00",
                             "currency_code" => "USD"
                         ]
                     ]],
                     "application_context" => [
                          "cancel_url" => "https://example.com/cancel",
                          "return_url" => "https://example.com/return"
                     ]
                 ];

try {
    // Call API with your client and get a response for your call
    $response = $client->execute($request);

    // If call returns body in response, you can get the deserialized version from the result attribute of the response
    print_r($response);
}catch (HttpException $ex) {
    echo $ex->statusCode;
    print_r($ex->getMessage());
}
```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/830852d6c0509bd6524a2862f41fc87e6c6d1d51f822870c3170f8df1d24e693?d=identicon)[nguoingulanh](/maintainers/nguoingulanh)

---

Top Contributors

[![nguoingulanh](https://avatars.githubusercontent.com/u/43754318?v=4)](https://github.com/nguoingulanh "nguoingulanh (7 commits)")

### Embed Badge

![Health badge](/badges/nguoingulanh-paypal-panel/health.svg)

```
[![Health](https://phpackages.com/badges/nguoingulanh-paypal-panel/health.svg)](https://phpackages.com/packages/nguoingulanh-paypal-panel)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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