Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mendoc/ongoua-pvit-php

A composer package for use PVit payment gateway
https://github.com/mendoc/ongoua-pvit-php

composer ongoua packagist php pvit

Last synced: 15 days ago
JSON representation

A composer package for use PVit payment gateway

Awesome Lists containing this project

README

        

# ongoua-pvit-php
A composer package for use PVit payment gateway

## Installation
### Using Composer
```bash
composer require ongoua/pvit
```
## Usage
### Submitting request

```php
setMontant(100);
$clientPvit->setRef("PROD66784");
$clientPvit->setTelClient("074567890");

try {
$response = $clientPvit->send();
echo $response->getStatut();
} catch (Exception $e) {
echo 'Error message: ' . $e->getMessage();
}
```
### In your PVit callback
```php
getStatut();
} catch (Exception $e) {
echo 'Error message: ' . $e->getMessage();
}
```

## Report bug
DM me on Twitter [@DimitriONGOUA](https://twitter.com/DimitriOngoua)