array("Type" => "System", "Value"=>"PayAnyWay"), "mnt_id" => array("FriendlyName" => "Account Number", "Type" => "text", "Size" => "20", ), "mnt_dataintegrity_code" => array("FriendlyName" => "Code of data integrity verification", "Type" => "text", "Size" => "20", ), "mnt_test_mode" => array("FriendlyName" => "Test Mode", "Type" => "yesno" ), ); return $configarray; } function payanyway_link($params) { # Gateway Specific Variables $gatewayusername = $params['mnt_id']; $gatewaytestmode = intval($params['mnt_test_mode']); $gatewaykey = $params['mnt_dataintegrity_code']; # Invoice Variables $invoiceid = $params['invoiceid']; $description = $params["description"]; $amount = $params['amount']; # Format: ##.## $currency = $params['currency']; # Currency Code # Client Variables $firstname = $params['clientdetails']['firstname']; $lastname = $params['clientdetails']['lastname']; $email = $params['clientdetails']['email']; $address1 = $params['clientdetails']['address1']; $address2 = $params['clientdetails']['address2']; $city = $params['clientdetails']['city']; $state = $params['clientdetails']['state']; $postcode = $params['clientdetails']['postcode']; $country = $params['clientdetails']['country']; $phone = $params['clientdetails']['phonenumber']; # System Variables $companyname = $params['companyname']; $systemurl = $params['systemurl']; $currency = $params['currency']; # Enter your code submit to the gateway... $signature = md5($gatewayusername . $invoiceid . $amount . $currency . $gatewaytestmode . $gatewaykey); $code = '
'; return $code; } ?>