PHPackages                             vicky-dev-9/payments-api - 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. vicky-dev-9/payments-api

ActiveLibrary[Payment Processing](/categories/payments)

vicky-dev-9/payments-api
========================

1.1.3(2y ago)012MITPHPPHP ^8.2

Since Aug 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/demid-vicky-9/payments-api)[ Packagist](https://packagist.org/packages/vicky-dev-9/payments-api)[ RSS](/packages/vicky-dev-9-payments-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (19)Used By (0)

Instruction
===========

[](#instruction)

Laravel Usage
-------------

[](#laravel-usage)

Create file `config/payments_api.php` with content:

```
return [
    'paypal' => [
        'client_id' => env('PAYPAL_CLIENT_ID', ''),
        'client_secret' => env('PAYPAL_CLIENT_SECRET', ''),
        'app_id' => env('PAYPAL_APP_ID', ''),
        'mode' => env('PAYPAL_MODE', ''),
    ],
    'stripe' => [
        'secret_key' => env('STRIPE_SECRET_KEY', null),
        'publishable_key' => env('STRIPE_PUBLISHABLE_KEY', null),
    ],
    'liqpay' => [
        'private_key' => env('LIQPAY_PRIVATE_KEY', null),
        'public_key' => env('LIQPAY_PUBLIC_KEY', null),
    ],
];
```

For get orderId use:

```
    public function __construct(
        protected PaymentFactory $paymentFactory
    ) {
    }

    public function getOrderId(int $system) {
        $paymentService = $this->paymentFactory->getInstance(
            Payments::from($system),
            config('payments_api')
        );
        $makePaymentDTO = new MakePaymentDTO(
            15.25,
            Currency::USD
        );
        $orderId = $paymentService->createPayment($makePaymentDTO);

        return $orderId;
    }
```

For get payment result info use:

```
    public function __construct(
        protected PaymentFactory $paymentFactory
    ) {
    }

    public function getPaymentResult(int $system, string $paymentId) {
    $paymentService = $this->paymentFactory->getInstance(
        Payments::from($system),
        config('payments_api')
    );
    $paymentResult = $paymentService->getPaymentInfo($paymentId);

    return $paymentResult;
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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 ~0 days

Total

10

Last Release

1000d ago

Major Versions

v0.0.2.x-dev → 1.0.02023-08-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/de323877b327ed22aa270725ff623472b04a1698226818846123fc045a16db45?d=identicon)[demid-vicky-9](/maintainers/demid-vicky-9)

---

Top Contributors

[![demid-vicky-9](https://avatars.githubusercontent.com/u/32169912?v=4)](https://github.com/demid-vicky-9 "demid-vicky-9 (23 commits)")

### Embed Badge

![Health badge](/badges/vicky-dev-9-payments-api/health.svg)

```
[![Health](https://phpackages.com/badges/vicky-dev-9-payments-api/health.svg)](https://phpackages.com/packages/vicky-dev-9-payments-api)
```

###  Alternatives

[spatie/laravel-stripe-webhooks

Handle stripe webhooks in a Laravel application

5213.1M8](/packages/spatie-laravel-stripe-webhooks)[tightenco/nova-stripe

A tool to create a quick Stripe dashboard in your Laravel Nova admin panels

110308.9k](/packages/tightenco-nova-stripe)[duncanmcclean/simple-commerce

A simple, yet powerful e-commerce addon for Statamic.

16313.2k2](/packages/duncanmcclean-simple-commerce)[flux-se/payum-stripe

Payum Stripe gateways

29407.5k4](/packages/flux-se-payum-stripe)[payum/stripe

The Payum extension. It provides Stripe payment integration.

22573.1k3](/packages/payum-stripe)[flux-se/sylius-stripe-plugin

Sylius Stripe plugin using Payment Request

1029.3k](/packages/flux-se-sylius-stripe-plugin)

PHPackages © 2026

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