- Notifications
You must be signed in to change notification settings - Fork1
A composer package for use PVit payment gateway
License
NotificationsYou must be signed in to change notification settings
mendoc/ongoua-pvit-php
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A composer package for use PVit payment gateway
composer require ongoua/pvit
<?phpuseOngoua\OngouaPvit;constTEL_MARCHAND ="077000000";constTOKEN ="PVIT_TOKEN";$clientPvit =newOngouaPvit(TEL_MARCHAND,TOKEN);$clientPvit->setMontant(100);$clientPvit->setRef("PROD66784");$clientPvit->setTelClient("074567890");try {$response =$clientPvit->send();echo$response->getStatut();}catch (Exception$e) {echo'Error message:' .$e->getMessage();}
<?phpuseOngoua\OngouaPvit;try {// $xmlPVit contains XML response provided by PVit$xmlPVit ="XML response from PVit";$data = OngouaPvit::parse($xmlPVit);echo$data->getStatut();}catch (Exception$e) {echo'Error message:' .$e->getMessage();}
DM me on Twitter@DimitriONGOUA