PHPackages                             gamevault/lunar-pensopay - 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. gamevault/lunar-pensopay

ActiveLibrary[Payment Processing](/categories/payments)

gamevault/lunar-pensopay
========================

A Lunar community payment driver for Pensopay

201[1 issues](https://github.com/Gamevault-gg/lunar-pensopay/issues)[10 PRs](https://github.com/Gamevault-gg/lunar-pensopay/pulls)PHP

Since Mar 9Pushed 2w agoCompare

[ Source](https://github.com/Gamevault-gg/lunar-pensopay)[ Packagist](https://packagist.org/packages/gamevault/lunar-pensopay)[ RSS](/packages/gamevault-lunar-pensopay/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (14)Used By (0)

A community Lunar payment driver for Pensopay
=============================================

[](#a-community-lunar-payment-driver-for-pensopay)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f518a77acd53e660706a3a0bff65afb5eec4d3de6beb3c36478f768c3063408f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67616d657661756c742f6c756e61722d70656e736f7061792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gamevault/lunar-pensopay)[![GitHub Tests Action Status](https://camo.githubusercontent.com/4beee58a7a25927c39f59acf08b29e8487f18276020b76044ce413691e092093/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f67616d657661756c742f6c756e61722d70656e736f7061792f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/gamevault/lunar-pensopay/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/4d67f303c07bb1ef557e1536d92fbaf33c38d514f7ead5ea3d1e89c50f422600/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f67616d657661756c742f6c756e61722d70656e736f7061792f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/gamevault/lunar-pensopay/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/8ebaacdd2a5c6e7c41a2104cc46740d2b5ad464d4553d163a9037acc5313bcb1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f67616d657661756c742f6c756e61722d70656e736f7061792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gamevault/lunar-pensopay)

Easily integrate Pensopay into Lunar with the community payment driver for Pensopay. This integration are based on [PensoPay API docs](https://docs.pensopay.com/reference/getting-started-with-your-api)

ToDo
----

[](#todo)

There is still some minor stuff to take into consideration

- Defining success\_url, cancel\_url and callback\_url urls with id params in the urls.
- Dynamic selection of facilitator (payment types: creditcard, viabill, expressbank, paypal and anyday).
- Tests.

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

[](#installation)

You can install the package via composer:

```
composer require gamevault/lunar-pensopay
```

This package uses the spatie [laravel-webhook-client](https://github.com/spatie/laravel-webhook-client) package to handle the callbacks sent from Pensopay.

You can publish the configs and run the migrations with:

```
php artisan vendor:publish --tag="lunar-pensopay-config"
php artisan vendor:publish --provider="Spatie\WebhookClient\WebhookClientServiceProvider" --tag="webhook-client-config"
php artisan migrate
```

This is the contents of the published pensopay config file:

```
return [
    'policy' => env('AUTO_CAPTURE', false),
    'url' => env('PENSOPAY_URL', 'https://api.pensopay.com/v1'),
    'token' => env('PENSOPAY_TOKEN'),
    'testmode' => env('PENSOPAY_TESTMODE', false),
];
```

The webhook-client.php should look like the following:

```
