Exemplo n.º 1
0
 public static function getSoapClient()
 {
     //$wsdl = CodaUtil::airtimeWSDLURL();
     $wsdl = CodaUtil::airtimeURL();
     $client = new SoapClient($wsdl, array('typemap' => array(array('type_ns' => 'http://www.w3.org/2001/XMLSchema', 'type_name' => 'long', 'to_xml' => 'CodaUtil::to_long_xml', 'from_xml' => 'CodaUtil::from_long_xml'))));
     return $client;
 }
Exemplo n.º 2
0
<?php

include 'coda/CodaUtil.php';
$airtimeRoot = CodaUtil::airtimeURL();
//log_message('info', 'The purpose of some variable is to provide some value.');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome To Security Company</title>
<link href="css/style.css" rel="stylesheet" type="text/css" /> 

<script type="text/javascript" language="javascript" src="script/jquery-1.3.2.min.js"></script>
<link rel="stylesheet" type="text/css" href="<?php 
echo $airtimeRoot;
?>
css/airtime_v1.0.css">
<script type="text/javascript" src="<?php 
echo $airtimeRoot;
?>
js/airtime_v1.0.js"></script>
<script type="text/javascript">
     
function processPayment (obj) {
	if (validate ()) {
		initTxn (obj, $('input[name=PayType]:radio:checked').val());
	}
}

function initTxn (obj, payType) {