PHPackages                             obydul/laraskrill - 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. obydul/laraskrill

ActiveLibrary[Payment Processing](/categories/payments)

obydul/laraskrill
=================

LaraSkrill is a laravel plugin for processing payments through Skrill.

v1.2.0(4y ago)15182.5k↓35.4%5MITPHP

Since Mar 17Pushed 2y ago2 watchersCompare

[ Source](https://github.com/mdobydullah/laraskrill)[ Packagist](https://packagist.org/packages/obydul/laraskrill)[ RSS](/packages/obydul-laraskrill/feed)WikiDiscussions master Synced today

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

LaraSkrill
==========

[](#laraskrill)

[![Latest Stable Version](https://camo.githubusercontent.com/f08e149ea2331e1ab1ac9479aae2b8579807b5a6b22d27ff27459c9232a39524/68747470733a2f2f706f7365722e707567782e6f72672f6f627964756c2f6c617261736b72696c6c2f762f737461626c65)](https://packagist.org/packages/obydul/laraskrill)[![Latest Unstable Version](https://camo.githubusercontent.com/c2d65e9f075b824704267e029172aadd6983034d030a16c4d62971ad67991e23/68747470733a2f2f706f7365722e707567782e6f72672f6f627964756c2f6c617261736b72696c6c2f762f756e737461626c65)](https://packagist.org/packages/obydul/laraskrill)[![License](https://camo.githubusercontent.com/0254fd16e4c1c59f4eadfd37da3cf7de1c2a7a3f5396798105f984083f75735a/68747470733a2f2f706f7365722e707567782e6f72672f6f627964756c2f6c617261736b72696c6c2f6c6963656e7365)](https://packagist.org/packages/obydul/laraskrill)[![](https://camo.githubusercontent.com/3d7befbbd64cd659e2e418db6ed461ec034c519bd7dc754c6a0f69525c4b74da/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c696e6b747265652d343562633537)](https://linktr.ee/obydul)

Introduction
------------

[](#introduction)

By using this plugin you can process or refund payments from Skrill in your Laravel application. You may read this article and can see the output of this package. Article link: [Laravel Skrill Payment Gateway Integration with LaraSkrill](https://shouts.dev/articles/laravel-skrill-payment-gateway-integration-with-laraskrill)

Demo Laravel Project: [Laravel LaraSkrill Integration](https://github.com/mdobydullah/laravel-laraskrill-integration)

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

[](#installation)

- Use the following command to install:

```
composer require obydul/laraskrill
```

- Laravel 5.5 uses package auto-discovery, so doesn't require you to manually add the ServiceProvider. If you don't use auto-discovery, add the service provider to your `$providers` array in `config/app.php` file like:

```
Obydul\LaraSkrill\LaraSkrillServiceProvider::class
```

Installation completed.

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

[](#configuration)

- After installation, create a constructor.

```
/**
 * Construct.
 */
private $skrilRequest;

public function __construct()
{
    // skrill config
    $this->skrilRequest = new SkrillRequest();
    $this->skrilRequest->pay_to_email = 'demoqco@sun-fish.com'; // your merchant email
    $this->skrilRequest->return_url = 'RETURN URL';
    $this->skrilRequest->cancel_url = 'CANCEL URL';
    $this->skrilRequest->logo_url = 'https://cdn.shouts.dev/images/shoutsdev.png';  // optional
    $this->skrilRequest->status_url = 'IPN URL or Email';  // you can use https://webhook.site webhook url as test IPN
    $this->skrilRequest->status_url2 = 'IPN URL or Email'; // optional
}
```

#### API/MQI password

[](#apimqi-password)

To make a refund, we need the API/MQI password. In your Skrill account, go to Settings &gt; Developer Settings &gt; Change MQI/API password.

Usage
-----

[](#usage)

Following are some ways through which you can access the LaraSkrill provider:

```
// Import the class namespaces first, before using it directly
use Obydul\LaraSkrill\SkrillClient;
use Obydul\LaraSkrill\SkrillRequest;

// Create object instance
$request = new SkrillRequest();
$client = new SkrillClient($request);

// Methods
$sid = $client->generateSID();
$client->paymentRedirectUrl($sid);
$refund_prepare_response = $client->prepareRefund();
$do_refund = $client->doRefund();
```

#### Make a Payment

[](#make-a-payment)

```
// create object instance of SkrillRequest
$this->skrilRequest->amount = '10.26';
$this->skrilRequest->currency = 'USD';
$this->skrilRequest->language = 'EN';
$this->skrilRequest->prepare_only = '1';

// custom fields (optional)
$this->skrilRequest->merchant_fields = 'site_name, invoice_id, customer_id, customer_email';
$this->skrilRequest->site_name = 'Shout.dev';
$this->skrilRequest->invoice_id = 'INV_' . strtoupper(str()->random(10));
$this->skrilRequest->customer_id = 1001;
$this->skrilRequest->customer_email = 'customer@shouts.dev';

$this->skrilRequest->detail1_description = 'Product ID:';
$this->skrilRequest->detail1_text = '101';

// you can also pass your unique transaction id  (optional)
// $this->skrilRequest->transaction_id = 'SHOUTSTX0001';

// create object instance of SkrillClient
$client = new SkrillClient($this->skrilRequest);
$sid = $client->generateSID(); //return SESSION ID

// handle error
$jsonSID = json_decode($sid);
if ($jsonSID != null && $jsonSID->code == "BAD_REQUEST")
    return $jsonSID->message;

// do the payment
$redirectUrl = $client->paymentRedirectUrl($sid); //return redirect url
return redirect()->to($redirectUrl); // redirect user to Skrill payment page
```

#### Refund

[](#refund)

```
// Create object instance of SkrillRequest
$prepare_refund_request = new SkrillRequest();
// config
$prepare_refund_request->email = 'merchant_email';
$prepare_refund_request->password = 'api_password';
$prepare_refund_request->refund_status_url = 'refund_status_url';
// request
$prepare_refund_request->transaction_id = 'MNPTTX0001';
$prepare_refund_request->amount = '5.56';
$prepare_refund_request->refund_note = 'Product no longer in stock';
$prepare_refund_request->merchant_fields = 'site_name, customer_email';
$prepare_refund_request->site_name = 'Your Website';
$prepare_refund_request->customer_email = 'customer@example.com';

// do prepare refund request
$client_prepare_refund = new SkrillClient($prepare_refund_request);
$refund_prepare_response = $client_prepare_refund->prepareRefund(); // sid or error code

// refund requests
$refund_request = new SkrillRequest();
$refund_request->sid = $refund_prepare_response;

// do refund
$client_refund = new SkrillClient($refund_request);
$do_refund = $client_refund->doRefund();
dd($do_refund); // response
```

Note
----

[](#note)

#### Table 1: LaraSkrill Config Parameters

[](#table-1-laraskrill-config-parameters)

FieldDescriptionExamplemerchant\_emailEmail address of your Skrill merchant account.api\_passwordYour MD5 API/MQI password.60cede4a5aee9a3827f212ba45f88c61return\_urlURL to which the customer is returned if the payment is successful.[http://example.com/payment\_completed.html](http://example.com/payment_completed.html)cancel\_urlURL to which the customer is returned if the payment is cancelled or fails. If no cancel URL is provided the Cancel button is not displayed.[http://example.com/payment\_cancelled.html](http://example.com/payment_cancelled.html)status\_url, refund\_status\_urlURL to which the transaction details are posted after the payment process is complete. Alternatively, you may specify an email address where the results are sent. If the status\_url is omitted, no transaction details are sent[http://example.com/process\_payment.php](http://example.com/process_payment.php) or logo\_urlThe URL of the logo which you would like to appear in the top right of the Skrill page. The logo must be accessible via HTTPS or it will not be shown. (max length: 240)#### Checkout Parameters

[](#checkout-parameters)

There are many parameters of Skrill checkout. Please take a look at the page 13. [Skrill Quick Checkout Integration Guide - v8.3](https://www.skrill.com/fileadmin/content/pdf/Skrill_Quick_Checkout_Guide.pdf)

`Note:` 'pay\_to\_email', 'return\_url', 'cancel\_url', 'status\_url', 'status\_url2' and 'logo\_url' are already included in the config file. You can add other fields at checkout without these fields.

#### Table 2: Refund Parameters

[](#table-2-refund-parameters)

FieldDescriptionRequiredExampletransaction\_idYour transaction ID to be refunded.YesMNPSK09789amountAmount to refund in the currency used by the merchant account. This field is only used for partial refunds.No5.56refund\_noteRefund note sent to the customer. This note forms part of the email sent to the customer to inform them that they have received a refund. If no ‘amount’ value is submitted, the refund will be for the full amount of the original transaction.NoProduct no longer in stockmerchant\_fieldsA comma-separated list of field names that are passed back to your server when the refund payment is confirmed (maximum 5 fields).NoField1,Field2Field1An additional field you can include, containing your own unique parameters.NoValue1Field2An additional field you can include, containing your own unique parameters.NoValue2More parameters: You can add more fields. Please take a look at the page 24. [Skrill Automated Payments Interface (API) Guide - v3.0](https://www.skrill.com/fileadmin/content/pdf/Skrill_Automated_Payments_Interface_Guide.pdf)

`Note:` 'action', 'email', 'password', 'status\_url' are already included. You can add other fields at refund without these fields.

**Skrill IPN (status\_url):** If you want to get data from 'status\_url' instead of receiving email, then use this code to your ipn listener: [Skrill IPN by Md. Obydullah](https://gist.github.com/mdobydullah/8b0399c5c6368c05d98239837a20fb19)

Information
-----------

[](#information)

- [Skrill Quick Checkout Integration Guide](https://www.skrill.com/fileadmin/content/pdf/Skrill_Quick_Checkout_Guide.pdf) - version 8.3
- [Skrill Automated Payments Interface (API) Guide](https://www.skrill.com/fileadmin/content/pdf/Skrill_Automated_Payments_Interface_Guide.pdf) - version 3.2
- Skrill test merchant email: , ,
- MQI/API password and secret word: **mqi: skrill123, secretword: skrill**
- Skrill test card numbers: VISA: **4000001234567890** | MASTERCARD: **5438311234567890**

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/mdobydullah/laraskrill/blob/master/LICENSE) for more information.

Others
------

[](#others)

`Note:` I've taken the main concept from [skrill-quick](https://github.com/mikicaivosevic/skrill-quick) and thank you, [Mikica Ivosevic](https://github.com/mikicaivosevic).

In case of any issues/questions, kindly create one on the [Discussions](https://github.com/mdobydullah/laraskrill/discussions) section.

Thank you for installing LaraSkrill.

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community10

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

Total

5

Last Release

1461d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fb25eecd5c3d549122b9da8898b663959b47ca601d066710305a522f26dc4059?d=identicon)[Obydul](/maintainers/Obydul)

---

Top Contributors

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

---

Tags

laravellaravel-paymentlaravel-payment-gatewaylaravel-paymentslaravel-skrillpaymentskrill

### Embed Badge

![Health badge](/badges/obydul-laraskrill/health.svg)

```
[![Health](https://phpackages.com/badges/obydul-laraskrill/health.svg)](https://phpackages.com/packages/obydul-laraskrill)
```

###  Alternatives

[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3416.9k](/packages/duncanmcclean-statamic-cargo)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)[glennraya/xendivel

A Laravel package to easily integrate Xendit payment gateway. It supports credit and debit cards, and e-wallet payments and custom invoices, queued notifications, webhook listeners and more.

442.7k](/packages/glennraya-xendivel)

PHPackages © 2026

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