PHPackages                             shipu/php-sslwireless-payment - 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. [API Development](/categories/api)
4. /
5. shipu/php-sslwireless-payment

ActiveLibrary[API Development](/categories/api)

shipu/php-sslwireless-payment
=============================

PHP client for SSL Wireless Payment API

v1.0.2(6y ago)4614219MITPHPPHP &gt;=5.5.9

Since Nov 13Pushed 6y ago5 watchersCompare

[ Source](https://github.com/Shipu/php-sslwireless-payment)[ Packagist](https://packagist.org/packages/shipu/php-sslwireless-payment)[ RSS](/packages/shipu-php-sslwireless-payment/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

PHP SSL-Wirless Payment Client
==============================

[](#php-ssl-wirless-payment-client)

php-sslwireless-payment is a PHP client for SSL Wirless Payment Gateway API. This package is also support Laravel.

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

[](#installation)

Go to terminal and run this command

```
composer require shipu/php-sslwireless-payment
```

Wait for few minutes. Composer will automatically install this package for your project.

### For Laravel

[](#for-laravel)

Below **Laravel 5.5** open `config/app` and add this line in `providers` section

```
Shipu\SslWPayment\SslWPaymentServiceProvider::class,
```

For Facade support you have add this line in `aliases` section.

```
'Payment'   =>  Shipu\SslWPayment\Facades\Payment::class,
```

Then run this command

```
php artisan vendor:publish --provider="Shipu\SslWPayment\SslWPaymentServiceProvider"
```

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

[](#configuration)

This package is required three configurations.

1. store\_id = your store id in SSL-Wirless Payment Gateway.
2. store\_password = your store password in SSL-Wirless Payment Gateway
3. sandbox = `true` for sandbox and `false` for live
4. redirect\_url = your application redirect url after `success`, `fail` and `cancel`.

php-sslwireless-payment is take an array as config file. Lets services

```
use Shipu\SslWPayment\Payment;

$config = [
    'store_id' => 'Your store id',
    'store_password' => 'Your store password',
    'sandbox' => true,
    'redirect_url' => [
        'fail' => [
            'route' => 'payment.failed'
        ],
        'success' => [
            'route' => 'payment.success'
        ],
        'cancel' => [
            'route' => 'payment.cancel'
        ]
    ]
];

$payment = new Payment($config);
```

### For Laravel

[](#for-laravel-1)

This package is also support Laravel. For laravel you have to configure it as laravel style.

Go to `app\sslwpayment.php` and configure it with your credentials.

```
return [
    'store_id' => 'Your store id',
    'store_password' => 'Your store password',
    'sandbox' => true,
    'redirect_url' => [
        'fail' => [
            'route' => 'payment.failed'
        ],
        'success' => [
            'route' => 'payment.success'
        ],
        'cancel' => [
            'route' => 'payment.cancel'
        ]
    ]
];
```

Usages
------

[](#usages)

- Mandatory input field name
    - tran\_id
    - cus\_name
    - cus\_email
    - cus\_phone

#### Getting Payment Post Url

[](#getting-payment-post-url)

In PHP:

```
use \Shipu\SslWPayment\Payment;

...

$payment = new Payment($config);
return $payment->paymentUrl();
```

In Laravel:

```
use \Shipu\SslWPayment\Payment;

...

$payment = new Payment(config('sslwpayment'));
return $payment->paymentUrl();
```

#### Getting Hidden Input Field

[](#getting-hidden-input-field)

```
use \Shipu\SslWPayment\Payment;

...

$payment = new Payment(config('sslwpayment'));
return $payment->customer([
    'cus_name'  => 'Shipu Ahamed', // Customer name
    'cus_email' => 'shipuahamed01@gmail.com', // Customer email
    'cus_phone' => '01616022669' // Customer Phone
])->transactionId('21005455540')->amount(3500)->hiddenValue();
```

Where Transaction id is random value. you can generate by yourself or follow bellow steps:

```
use \Shipu\SslWPayment\Payment;

...

$payment = new Payment(config('sslwpayment'));
return $payment->customer([
    'cus_name'  => 'Shipu Ahamed', // Customer name
    'cus_phone' => '01616022669', // Customer Phone
    'cus_email' => 'shipuahamed01@gmail.com' // Customer email
])->transactionId()->amount(3500)->hiddenValue();

or

return $payment->customer([
    'cus_name'  => 'Shipu Ahamed', // Customer name
    'cus_phone' => '01616022669', // Customer Phone
    'cus_email' => 'shipuahamed01@gmail.com' // Customer email
])->amount(3500)->hiddenValue();
```

#### Generate Transaction Id

[](#generate-transaction-id)

```
use \Shipu\SslWPayment\Payment;

...

$payment = new Payment(config('sslwpayment'));
return $payment->generateTransaction();
```

#### Checking Valid Response

[](#checking-valid-response)

```
use \Shipu\SslWPayment\Payment;

...

$payment = new Payment(config('sslwpayment'));
return $payment->valid($request);
```

Checking valid response with amount:

```
use \Shipu\SslWPayment\Payment;

...

$payment = new Payment(config('sslwpayment'));
return $payment->valid($request, '3500');
```

Checking valid response with amount and transaction id:

```
use \Shipu\SslWPayment\Payment;

...

$payment = new Payment(config('sslwpayment'));
return $payment->valid($request, '3500', '21005455540');
```

Where `$request` will appear after post response.

In Blade
--------

[](#in-blade)

#### Getting Payment Post Url

[](#getting-payment-post-url-1)

```
{{ ssl_wireless_payment_url() }}
```

#### Getting Hidden Input Field

[](#getting-hidden-input-field-1)

```
{!!
    ssl_wireless_hidden_input([
        'tran_id'   => '21005455540', // random number
        'cus_name'  => 'Shipu Ahamed', // Customer name
        'cus_email' => 'shipuahamed01@gmail.com', // Customer email
        'cus_phone' => '01616022669' // Customer Phone
    ], 3500)
!!}
```

#### Complete Post Button View

[](#complete-post-button-view)

```
{!!
ssl_wireless_post_button([
    'tran_id'   => '21005455540', // random number
    'cus_name'  => 'Shipu Ahamed', // Customer name
    'cus_email' => 'shipuahamed01@gmail.com', // Customer email
    'cus_phone' => '01616022669' // Customer Phone
], 2000, '', 'btn btn-sm btn-success')
!!}
```

Example
-------

[](#example)

##### Route

[](#route)

```
Route::post('payment/success', 'YourMakePaymentsController@paymentSuccess')->name('payment.success');
Route::post('payment/failed', 'YourMakePaymentsController@paymentFailed')->name('payment.failed');
Route::post('payment/cancel', 'YourMakePaymentsController@paymentCancel')->name('payment.cancel');
```

or

```
Route::post('payment/success', 'YourMakePaymentsController@paymentSuccessOrFailed')->name('payment.success');
Route::post('payment/failed', 'YourMakePaymentsController@paymentSuccessOrFailed')->name('payment.failed');
Route::post('payment/cancel', 'YourMakePaymentsController@paymentSuccessOrFailed')->name('payment.cancel');
```

##### Controller Method

[](#controller-method)

```
use Shipu\SslWPayment\Facades\Payment;

...

public function paymentSuccessOrFailed(Request $request)
{
    if($request->get('status') == 'CANCELLED') {
        return redirect()->back();
    }

    $transactionId = $request->get('tran_id');
    $valid = Payment::valid($request, 3500, $transactionId);

    if($valid) {
        // Successfully Paid.
    } else {
       // Something went wrong.
    }

    return redirect()->back();
}
```

To Disable CSRF token
---------------------

[](#to-disable-csrf-token)

Open `app/Http/Middleware/VerifyCsrfToken.php` and adding :

```
protected $except = [
    ...
    'payment/*',
    ...
];
```

Credits
-------

[](#credits)

- [Shipu Ahamed](https://github.com/shipu)
- [All Contributors](../../contributors)

Special Thanks to [Tawsif ul Karim](https://github.com/tawsifkarim).

Support on Beerpay
------------------

[](#support-on-beerpay)

Hey dude! Help me out for a couple of 🍻!

[![Beerpay](https://camo.githubusercontent.com/9d65a0a45b30ab025bd3f4c2c1539085654825d585433ae21ed4e16960907370/68747470733a2f2f626565727061792e696f2f53686970752f7068702d73736c776972656c6573732d7061796d656e742f62616467652e7376673f7374796c653d626565722d737175617265)](https://beerpay.io/Shipu/php-sslwireless-payment) [![Beerpay](https://camo.githubusercontent.com/89b6a79deb2544bae253a4d0af5c5257cf59596121291d1a13cca85ec76dfbe3/68747470733a2f2f626565727061792e696f2f53686970752f7068702d73736c776972656c6573732d7061796d656e742f6d616b652d776973682e7376673f7374796c653d666c61742d737175617265)](https://beerpay.io/Shipu/php-sslwireless-payment?focus=wish)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

2262d ago

Major Versions

v0.2 → v1.02017-11-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/91fdb46a4f45685ae0d448fbc943b1e4a662b56864b17224a65d14c92ee4e247?d=identicon)[shipu](/maintainers/shipu)

---

Top Contributors

[![Shipu](https://avatars.githubusercontent.com/u/4118421?v=4)](https://github.com/Shipu "Shipu (13 commits)")

---

Tags

payment-gatewayphp-clientphp-sslwireless-paymenttransactionphpapismsSSL Wirelessphp-ssl-payment

### Embed Badge

![Health badge](/badges/shipu-php-sslwireless-payment/health.svg)

```
[![Health](https://phpackages.com/badges/shipu-php-sslwireless-payment/health.svg)](https://phpackages.com/packages/shipu-php-sslwireless-payment)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[unicodeveloper/jusibe-php-lib

Jusibe PHP Library

3417.4k1](/packages/unicodeveloper-jusibe-php-lib)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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