PHPackages                             xcrone/securepay-laravel - 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. xcrone/securepay-laravel

ActiveLibrary[Payment Processing](/categories/payments)

xcrone/securepay-laravel
========================

SecurePay for Laravel

0.1-beta(2y ago)110MITPHPPHP &gt;=5.6.4

Since Sep 19Pushed 2y ago1 watchersCompare

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

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

SecurePay Payment Gateway for Laravel
=====================================

[](#securepay-payment-gateway-for-laravel)

Setup
-----

[](#setup)

Add and fill in the following variables to your `.env`.

```
SECUREPAY_ENVIRONMENT=sandbox # production / sandbox
SECUREPAY_API_UID=
SECUREPAY_AUTH_TOKEN=
SECUREPAY_CHECKSUM_TOKEN=
```

Optionally, you can add the alias as below n `config/app.php`:-

```
'SecurePay' => Xcrone\Facades\SecurePay::class
```

### Laravel without auto-discovery

[](#laravel-without-auto-discovery)

If you don't use auto-discovery, add the ServiceProvider to the providers array in `config/app.php`.

```
Xcrone\SecurePayServiceProvider::class
```

#### Copy the package config to your local config with the publish command

[](#copy-the-package-config-to-your-local-config-with-the-publish-command)

```
php artisan vendor:publish --provider="Xcrone\SecurePayServiceProvider"
```

Usage Example
-------------

[](#usage-example)

### Create a new payment

[](#create-a-new-payment)

```
use Xcrone\SecurePay;
use Illuminate\Http\Request;

/**
 * Demo payment.
 *
 * @param  \Illuminate\Http\Request  $request
 * @return \GuzzleHttp\Psr7\Stream
 */
public function pay(Request $request)
{
    $securepay = new SecurePay;

    $data = [
        'order_number' => rand(1111111111, 9999999999),
        'buyer_name' => 'John Doe',
        'buyer_email' => 'john@example.com',
        'buyer_phone' => '+60114444444',
        'transaction_amount' => 300.00,
        'product_description' => 'Payment for item: ' . $request->product_id,
        'callback_url' => 'http://callback_url',
        'redirect_url' => 'http://redirect_url',
        'cancel_url' => 'http://cancel_url',
        'params' => [
            'selected_item' => $request->selected_item,
            'selected_item2' => $request->selected_item2,
        ],
        'redirect_post' => 'true',
    ];

    return $securepay->createPayment($data);
}
```

### Get bank list

[](#get-bank-list)

#### Retail bank list

[](#retail-bank-list)

All list

```
$securepay = new SecurePay;
return $securepay->getRetailBankList();
```

Online or offline only

```
$securepay = new SecurePay;
$online = true; // true = 'online', false = 'offline'
return $securepay->getRetailBankList($online);
```

#### Corporate bank list

[](#corporate-bank-list)

All list

```
$securepay = new SecurePay;
return $securepay->getCorporateBankList();
```

Online or offline only

```
$securepay = new SecurePay;
$online = true; // true = 'online', false = 'offline'
return $securepay->getCorporateBankList($online);
```

More SecurePay payment parameters can be found [here](https://docs.securepay.my/api/merchant/payment#request-parameters).

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

966d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/16500dd00fb10bc717e55c8867300cf8eee8a41b267160df72f66667a9881dd2?d=identicon)[xcrone](/maintainers/xcrone)

---

Top Contributors

[![xcrone](https://avatars.githubusercontent.com/u/48623158?v=4)](https://github.com/xcrone "xcrone (2 commits)")

### Embed Badge

![Health badge](/badges/xcrone-securepay-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/xcrone-securepay-laravel/health.svg)](https://phpackages.com/packages/xcrone-securepay-laravel)
```

###  Alternatives

[chargebee/chargebee-php

ChargeBee API client implementation for PHP

768.0M9](/packages/chargebee-chargebee-php)[imdhemy/google-play-billing

Google Play Billing

491.3M5](/packages/imdhemy-google-play-billing)[bitpay/sdk

Complete version of the PHP library for the new cryptographically secure BitPay API

42337.5k4](/packages/bitpay-sdk)[buckaroo/sdk

Buckaroo payment SDK

12189.1k9](/packages/buckaroo-sdk)[contica/facturador-electronico-cr

Un facturador de código libre para integrar facturación electrónica en Costa Rica a un proyecto PHP

2128.8k](/packages/contica-facturador-electronico-cr)[karson/mpesa-php-sdk

172.2k](/packages/karson-mpesa-php-sdk)

PHPackages © 2026

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