Guest Posted July 12, 2005 Share Posted July 12, 2005 I have problem with my CCNow Modules, when processing payment from cubecart to CCNow server, error 5 "missing x_amount", does anyone can solve this? Thank You. Quote Link to comment Share on other sites More sharing options...
Guest Posted July 12, 2005 Share Posted July 12, 2005 Please Anyone help me.. Quote Link to comment Share on other sites More sharing options...
Guest drmedo Posted March 3, 2007 Share Posted March 3, 2007 same problem here any help please same problem any help please Quote Link to comment Share on other sites More sharing options...
Guest Posted March 18, 2007 Share Posted March 18, 2007 bump ... same here Quote Link to comment Share on other sites More sharing options...
Guest Owni Posted December 13, 2007 Share Posted December 13, 2007 :) also got this error HELP!!!!!!!! Quote Link to comment Share on other sites More sharing options...
Guest jackli Posted December 28, 2007 Share Posted December 28, 2007 I have problem with my CCNow Modules, when processing payment from cubecart to CCNow server, error 5 "missing x_amount", does anyone can solve this? Thank You. //////////////////////////////////////////////////////// */ $module = fetchDbConfig("ccNow"); function repeatVars(){ global $i, $orderInv; $hiddenVars = "<input type='hidden' name='x_product_sku_".$i."' value='".$orderInv['productCode']."' /> <input type='hidden' name='x_product_title_".$i."' value='".$orderInv['name']."' /> <input type='hidden' name='x_product_quantity_".$i."' value='".$orderInv['quantity']."' /> <input type='hidden' name='x_product_unitprice_".$i."' value='".sprintf("%.2f",$orderInv['price']/$orderInv['quantity'])."' /> <input type='hidden' name='x_product_url_".$i."' value='".$GLOBALS['storeURL']."/index.php?_a=viewProd&productId=".$orderInv['productId']."' />"; return $hiddenVars; } function fixedVars(){ global $module, $basket, $ccUserData, $cart_order_id, $config, $GLOBALS; $hiddenVars = "<input type='hidden' name='x_login' value='".$module['acName']."' /> <input type='hidden' name='x_version' value='1.0' /> <input type='hidden' name='x_fp_arg_list' value='x_login^x_fp_arg_list^x_fp_sequence^x_amount^x_currency_code' /> <input type='hidden' name='x_fp_hash' value='".md5($module['acName']."^x_login^x_fp_arg_list^x_fp_sequence^x_amount^x_currency_code^".str_replace("-","",$cart_order_id)."^".$basket['grandTotal']."^".$config['defaultCurrency']."^".$module['actKey'])."' /> <input type='hidden' name='x_fp_sequence' value='".str_replace("-","",$cart_order_id)."' /> <input type='hidden' name='x_currency_code' value='".$config['defaultCurrency']."' /> <input type='hidden' name='x_method' value='NONE' /> <input type='hidden' name='x_name' value='".$ccUserData[0]['title']." ".$ccUserData[0]['firstName']." ".$ccUserData[0]['lastName']."' /> <input type='hidden' name='x_address' value='".$ccUserData[0]['add_1']."' /> <input type='hidden' name='x_address2' value='".$ccUserData[0]['add_2']."' /> <input type='hidden' name='x_city' value='".$ccUserData[0]['town']."' /> <input type='hidden' name='x_state' value='".$ccUserData[0]['county']."' /> <input type='hidden' name='x_zip' value='".$ccUserData[0]['postcode']."' /> <input type='hidden' name='x_country' value='".countryIso($ccUserData[0]['country'])."' /> <input type='hidden' name='x_phone' value='".$ccUserData[0]['phone']."' /> <input type='hidden' name='x_email' value='".$ccUserData[0]['email']."' /> <input type='hidden' name='x_invoice_num' value='".$cart_order_id."' /> <input type='hidden' name='x_instructions' value='".$basket['customer_comments']."' /> <input type='hidden' name='x_amount' value='".$basket['grandTotal']."' /> <input type='hidden' name='x_shipping_amount' value='".$basket['shipCost']."' />"; return $hiddenVars; } function success(){ global $basket; if( (base64_decode($_GET['oid']) == $basket['cart_order_id']) && !isset($_GET['f']) ) { return TRUE; } else { return FALSE; } } /////////////////////////// Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.