PHPackages                             rublex/laravel-finpay-gateway - 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. rublex/laravel-finpay-gateway

ActiveLibrary[Payment Processing](/categories/payments)

rublex/laravel-finpay-gateway
=============================

A Laravel payment gateway package for Finpay

0221↓27.1%PHP

Since May 23Pushed 1mo agoCompare

[ Source](https://github.com/rublexgit/laravel-finpay-gateway)[ Packagist](https://packagist.org/packages/rublex/laravel-finpay-gateway)[ RSS](/packages/rublex-laravel-finpay-gateway/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Finpay Gateway
======================

[](#laravel-finpay-gateway)

[![Latest Version](https://camo.githubusercontent.com/34e695c6016bc2a934a96bed696e29b2f2ab562a7134d65a55d00653cd506bea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e302e302d626c75652e737667)](https://packagist.org/packages/rublex/laravel-finpay-gateway)[![License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)

A Laravel payment gateway package for Finpay integration.

Features
--------

[](#features)

- Payment initiation
- Payment verification
- Payment status inquiry
- Callback route for gateway notifications
- Configurable via environment variables
- Laravel facade support

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

[](#installation)

```
composer require rublex/laravel-finpay-gateway
```

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

[](#configuration)

Publish the configuration file:

```
php artisan vendor:publish --provider="Finpay\FinpayServiceProvider" --tag="finpay-config"
```

Add credentials to your `.env` file:

```
FINPAY_BASE_URL=https://devo.finnet.co.id
FINPAY_MERCHANT_ID=
FINPAY_MERCHANT_KEY=
```

Quick Start
-----------

[](#quick-start)

```
use Finpay\Data\CustomerData;
use Finpay\Data\OrderData;
use Finpay\Facades\Finpay;

$response = Finpay::initiatePayment(
    new CustomerData(
        email: 'hajar.finnet@gmail.com',
        firstName: 'Hajar',
        lastName: 'Ismail',
        mobilePhone: '+6281286288844'
    ),
    new OrderData(
        id: 'INV-1774369486',
        amount: '10',
        currency: 'EUR',
        description: 'Testing'
    ),
    userCallbackUrl: 'https://example.com/payment/final-callback'
);

// Unified wrapper response shape:
// [
//     'status' => 'pending',
//     'responseCode' => '2000000',
//     'responseMessage' => 'Initiated',
//     'orderId' => 'INV-1774369486',
//     'transactionId' => 'TRX-123',
//     'redirect_url' => 'https://pay.example/redirect/...',
//     'gatewayReference' => 'REF-123',
//     'raw' => [/* full provider payload */],
// ]
```

Provider-specific fields are preserved under `raw`.

Contract-Based Usage
--------------------

[](#contract-based-usage)

```
use Finpay\Services\FinpayGatewayService;
use Rublex\CoreGateway\Data\DynamicDataBag;
use Rublex\CoreGateway\Data\PaymentRequestData;

$gateway = app(FinpayGatewayService::class);

$result = $gateway->initiate(new PaymentRequestData(
    gatewayCode: $gateway->code(),
    orderId: 'INV-1774369486',
    amount: '10',
    currency: 'EUR',
    callbackUrl: 'https://example.com/payment/final-callback',
    meta: new DynamicDataBag([
        'customer' => [
            'email' => 'hajar.finnet@gmail.com',
            'firstName' => 'Hajar',
            'lastName' => 'Ismail',
            'mobilePhone' => '+6281286288844',
        ],
        'order' => [
            'description' => 'Testing',
        ],
    ])
));
```

Backward Compatibility
----------------------

[](#backward-compatibility)

- `initiatePayment(CustomerData, OrderData, string)` remains available and now wraps `initiate(PaymentRequestData)`.
- `verifyPayment()` and `getPaymentStatus()` remain explicit package methods and still throw not-implemented exceptions.

Documentation
-------------

[](#documentation)

For installation and usage instructions, see [USAGE.md](USAGE.md).

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance61

Regular maintenance activity

Popularity16

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

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/a30955dfb5812ce62591802375eae1fe89123b20ae34bbed85aa29701f919ae4?d=identicon)[rublex](/maintainers/rublex)

### Embed Badge

![Health badge](/badges/rublex-laravel-finpay-gateway/health.svg)

```
[![Health](https://phpackages.com/badges/rublex-laravel-finpay-gateway/health.svg)](https://phpackages.com/packages/rublex-laravel-finpay-gateway)
```

###  Alternatives

[omnipay/coinbase

Coinbase driver for the Omnipay payment processing library

18570.2k1](/packages/omnipay-coinbase)

PHPackages © 2026

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