<?php //ini_set("display_errors" , 1 ); //include "class/class.payflowpro.php"; $return = ''; $secure = new secure(); $payflow = new payflow(); $module_id = $args["module_id"]; $payment_type = $args["payment_type"]; if ($payment_type == "creditcard") { $card = $secure->decrypte_creditcard($args["ccid"], $args["clockkey"]); if (key_exists("error", $card) == false) { $address = $secure->get_address_by_id($card["address_id"]); $name = $card["name"]; $namearr = explode(" ", $name); if (count($namearr) == 1) { $last = $name; $first = ''; } else { $first = ''; $x = 1; while ($x < count($namearr)) { if ($first != '') { $first .= " "; } $first .= $namearr[$x - 1]; $x++; } $last = $namearr[$x - 1]; } $tmp1 = $this->db->fetch_assoc($this->db->query("SELECT grant_total FROM erp_order WHERE order_id = {$module_id}"));