Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function notifyUrl() {
- if(isset($_POST['cpm_trans_id'])) {
- // Initialisation de CinetPay et Identification du paiement
- $id_transaction = $_POST['cpm_trans_id'];
- $apiKey = "1078567447584180beb603a5.42354627";
- $site_id = "808931";
- $plateform = "PROD";
- $version = "V1";
- $CinetPay = new CinetPay($site_id, $apiKey, $plateform, $version);
- $CinetPay->setTransId($id_transaction)->getPayStatus();
- $cpm_result = $CinetPay->_cpm_result;
- // Si le payement a réussi!
- if($cpm_result == '00') {
- $r = $this->sendSMS($this->session->userdata('user_telephone'));
- //$r = $this->saveInDatabase();
- exit(0);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement