Пример #1
0
    }
    $applicationfees = $applicationfees + $applicationfees * (0.95506 / 100);
    $applicationfees = $applicationfees * $programselectedcount;
    $applicationfees = round($applicationfees, 2);
} else {
    redirect($baseurl);
}
include "Sfa/BillToAddress.php";
include "Sfa/CardInfo.php";
include "Sfa/Merchant.php";
include "Sfa/MPIData.php";
include "Sfa/ShipToAddress.php";
include "Sfa/PGResponse.php";
include "Sfa/PostLibPHP.php";
include "Sfa/PGReserveData.php";
$oMPI = new MPIData();
$oCI = new CardInfo();
$oPostLibphp = new PostLibPHP();
$oMerchant = new Merchant();
$oBTA = new BillToAddress();
$oSTA = new ShipToAddress();
$oPGResp = new PGResponse();
$oPGReserveData = new PGReserveData();
$oMerchant->setMerchantDetails("00012849", "00012849", "00012849", "193.545.34.33", rand() . "", "Ord123", $baseurl . "payment/SFAResponse.php", "POST", "INR", "INV123", "req.Sale", $applicationfees, "", "Ext1", "true", "Ext3", "Ext4", "Ext5");
$oBTA->setAddressDetails("CID", "Tester", "JBIMS", "Mumbai", "Maharashtra", "Test", "Test", "Test", "IND", "*****@*****.**");
$oSTA->setAddressDetails("Add1", "Add2", "Add3", "City", "State", "443543", "IND", "*****@*****.**");
$INRapplicationfees = "INR" . $applicationfees;
$applicationfeespaisa = $applicationfees * 100;
$oMPI->setMPIRequestDetails($applicationfeespaisa, $INRapplicationfees, "356", "2", "JBIMS Admission", "", "", "", "0", "", "image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, application/x-shockwave-flash, */*", "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)");
$oPGReserveData->setReserveObj($applicationid, $applicantName, $applicantemailid, $applicationfees, "5", "6", "7", "8", "9", "10");
$oPGResp = $oPostLibphp->postSSL($oBTA, $oSTA, $oMerchant, $oMPI, $oPGReserveData);
Пример #2
0
<?php

//error_reporting(E_ALL);
//ini_set('display_errors', '1');
include "Sfa/BillToAddress.php";
include "Sfa/CardInfo.php";
include "Sfa/Merchant.php";
include "Sfa/MPIData.php";
include "Sfa/ShipToAddress.php";
include "Sfa/PGResponse.php";
include "Sfa/PostLibPHP.php";
include "Sfa/PGReserveData.php";
$oMPI = new MPIData();
$oCI = new CardInfo();
$oPostLibphp = new PostLibPHP();
$oMerchant = new Merchant();
$oBTA = new BillToAddress();
$oSTA = new ShipToAddress();
$oPGResp = new PGResponse();
$oPGReserveData = new PGReserveData();
$oMerchant->setMerchantDetails("00002116", "00002116", "00002116", "10.10.10.238", rand() . "", "OrderRef1", "", "", "INR", "INV1234", "req.Sale", "100", "", "Ext1", "Ext2", "Ext3", "Ext4", "Ext5");
$oSTA->setAddressDetails("Add1", "Add2", "Add3", "City", "State", "443543", "IND", "*****@*****.**");
$oBTA->setAddressDetails("CID", "Tester", "Aline1", "Aline2", "Aline3", "Pune", "MH", "48927489", "IND", "*****@*****.**");
$oCI->setCardDetails("MC", "5081264401288025", "234", "2028", "12", "Tester", "CREDI");
$oMPI->setMPIResponseDetails("02", "NTBlZjRjMThjMjc1NTUxYzk1MTY=", "Y", "AAAAAAAAAAAAAAAAAAAAAAAAAAA=", "84759435", "1000", "356");
$oPGResp = $oPostLibphp->postMOTO($oBTA, $oSTA, $oMerchant, $oMPI, $oCI, $oPGReserveData);
$oPGResp->getResponse($oResp);
print "Response Code:" . $oPGResp->getRespCode() . "<br>";
print "Response Message:" . $oPGResp->getRespMessage() . "<br>";
print "Transaction ID:" . $oPGResp->getTxnId() . "<br>";
print "Epg Transaction ID:" . $oPGResp->getEpgTxnId() . "<br>";