コード例 #1
0
ファイル: AutoPaymentEditor.php プロジェクト: dschwen/CRM
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<?php 
//Get Families for the drop-down
$sSQL = "SELECT * FROM family_fam ORDER BY fam_Name";
$rsFamilies = RunQuery($sSQL);
// Get the list of funds
$sSQL = "SELECT fun_ID,fun_Name,fun_Description,fun_Active FROM donationfund_fun WHERE fun_Active = 'true'";
$rsFunds = RunQuery($sSQL);
if ($sElectronicTransactionProcessor == "Vanco") {
    include "Include/vancowebservices.php";
    include "Include/VancoConfig.php";
    $customerid = "{$iAutID}";
    // This is an optional value that can be used to indicate a unique customer ID that is used in your system
    // put aut_ID into the $customerid field
    // Create object to preform API calls
    $workingobj = new VancoTools($VancoUserid, $VancoPassword, $VancoClientid, $VancoEnc_key, $VancoTest);
    // Call Login API to receive a session ID to be used in future API calls
    $sessionid = $workingobj->vancoLoginRequest();
    // Create content to be passed in the nvpvar variable for a TransparentRedirect API call
    $nvpvarcontent = $workingobj->vancoEFTTransparentRedirectNVPGenerator(RedirectURL("CatchCreatePayment.php"), $customerid, "", "NO");
}
?>

<?php 
if ($sElectronicTransactionProcessor == "Vanco") {
    ?>

<script>

function VancoErrorString (errNo)
{
コード例 #2
0
ファイル: DepositSlipEditor.php プロジェクト: dschwen/CRM
         // Now get the ID for the newly created record
         $sSQL = "SELECT MAX(res_ID) AS iResID FROM result_res";
         $rsLastEntry = RunQuery($sSQL);
         extract(mysql_fetch_array($rsLastEntry));
         $plg_aut_ResultID = $iResID;
         // Poke the ID of the new result record back into this pledge (payment) record
         $sSQL = "UPDATE pledge_plg SET plg_aut_ResultID=" . $plg_aut_ResultID . " WHERE plg_plgID=" . $plg_plgID;
         RunQuery($sSQL);
     }
 } else {
     if ($sElectronicTransactionProcessor == "Vanco") {
         $customerid = "{$aut_ID}";
         // This is an optional value that can be used to indicate a unique customer ID that is used in your system
         // put aut_ID into the $customerid field
         // Create object to preform API calls
         $workingobj = new VancoTools($VancoUserid, $VancoPassword, $VancoClientid, $VancoEnc_key, $VancoTest);
         // Call Login API to receive a session ID to be used in future API calls
         $sessionid = $workingobj->vancoLoginRequest();
         // Create content to be passed in the nvpvar variable for a TransparentRedirect API call
         $nvpvarcontent = $workingobj->vancoEFTTransparentRedirectNVPGenerator($VancoUrltoredirect, $customerid, "", "NO");
         $paymentmethodref = "";
         if ($dep_Type == "CreditCard") {
             $paymentmethodref = $creditcardvanco;
         } else {
             $paymentmethodref = $accountvanco;
         }
         $addRet = $workingobj->vancoEFTAddCompleteTransactionRequest($sessionid, $paymentmethodref, '0000-00-00', 'O', $customerid, "", $firstName . " " . $lastName, $address1, $address2, $city, $state, $zip, $phone, "No", "", "", "", $plg_amount);
         // $amount
         $retArr = array();
         parse_str($addRet, $retArr);
         $errListStr = "";