PHPackages                             mysoleas/package-sopay - 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. mysoleas/package-sopay

ActiveLibrary[Payment Processing](/categories/payments)

mysoleas/package-sopay
======================

Package pour le paiement en ligne de soleaspay

2.0.0(1y ago)08[2 PRs](https://github.com/MYSOLEAS/laravel-payment-package/pulls)MITPHP

Since May 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/MYSOLEAS/laravel-payment-package)[ Packagist](https://packagist.org/packages/mysoleas/package-sopay)[ Docs](https://github.com/mysoleas/package-sopay)[ RSS](/packages/mysoleas-package-sopay/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (13)Versions (6)Used By (0)

Laravel Package-sopay
=====================

[](#laravel-package-sopay)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e6e98b18fe382d8a651a5b062861a44661671b3d1b19923a25badeef7c6733de/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d79736f6c6561732f7061636b6167652d736f7061792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mysoleas/package-sopay)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/91c4e527d165d8deb9608cd3e93b6abcb21686c55d60109372b18b34b23bafcb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d79736f6c6561732f7061636b6167652d736f7061792f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/mysoleas/package-sopay/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/380d9a99f32a4fcc5de9ba65ebaee58a21dca3401198267d1defdf7f2102794d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d79736f6c6561732f7061636b6167652d736f7061792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mysoleas/package-sopay)

Package to allow developers using the laravel framework to easily integrate a reliable and secure online payment method into their projects.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/d6a28a736ab8c21e68a7b462ef2231a02efc008bcbc00b263f75b38078b460f4/68747470733a2f2f6170702e736f6c6561737061792e636f6d2f696d616765732f736f7061792e706e67)](https://soleaspay.com)

We invest a lot of resources in the creation of packages to facilitate the integration of online payments via our [soleaspay platform](https://soleaspay.com) . You can support us by using our package on your laravel application.

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

[](#installation)

You can install the package via composer:

```
composer require mysoleas/package-sopay
```

You can publish the config file with:

```
php artisan vendor:publish --tag="package-sopay-config"
```

You must now add your api-key provided by our [soleaspay](https://soleaspay.com) platform in the configuration file named **package-sopay.php** located in the config directory of your application.This is the contents of the published config file:

```
return [
    'x-api-key' => 'your api key'
];
```

You need to include the Packagesopay class in your file using:

```
use Mysoleas\PackageSopay\PackageSopay;
```

to finish you just have to send the following information :

- **service** (orange\_money\_CM, mtn\_mobile\_money\_CM, bitcoin, paypal, express\_union, perfect\_money, litecoin, dogecoin) ;
- **wallet** ;
- **amount** ;
- **currency** (XAF, USD, EUR) ;
- **order\_id** ;

To do this use the function **processPayment(service,wallet,amount,currency,order\_id)** and retrieve the response of the operation. Here is a usage pattern :

```
