Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

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

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A composer package for use PVit payment gateway

Installation

Using Composer

composer require ongoua/pvit

Usage

Submitting request

<?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();}

In your PVit callback

<?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();}

Report bug

DM me on Twitter@DimitriONGOUA

About

A composer package for use PVit payment gateway

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp