Guest Posted December 2, 2002 Share Posted December 2, 2002 I have tried to create a new payment module for firepay and I am getting the following error.. Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /usr/local/plesk/apache/vhosts/websiteaddress.com/httpdocs/catalogue/includes/modules/payment/firepayc.php on line 228 I have adapted the psigate one to fit my needs but have added 2 sections to the keys section and I suspect that is what is giving me the problem. Any suggestions :?: Link to comment Share on other sites More sharing options...
Guest Posted December 2, 2002 Share Posted December 2, 2002 This is the code I used to try to add in the 2 new sections that I require. I suspect this is giving me the parse error.. I am prolly missing something really stupid that I am just not seeing. Does anyone see my error? function process_button() { global $HTTP_POST_VARS, $HTTP_SERVER_VARS, $CardNumber, $firepayc_cc_owner, $firepayc_cc_expires_month, $firepayc_cc_expires_year, $order, $customer_id, $currencies; $process_button_string = tep_draw_hidden_field('MerchantID', MODULE_PAYMENT_FIREPAYc_MERCHANT_ID) . tep_draw_hidden_field('AccountID', MODULE_PAYMENT_FIREPAYc_ACCOUNT_ID) . tep_draw_hidden_field('Password', MODULE_PAYMENT_FIREPAYc_PASSWORD) . tep_draw_hidden_field('FullTotal', number_format($order->info['total'] * and later in the install section... function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Allow Firepay for CDN', 'MODULE_PAYMENT_FIREPAYc_STATUS', '1', 'Do you want to accept Canadian dollar FIREPAY payments?', '6', '1', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Merchant ID', 'MODULE_PAYMENT_FIREPAYc_MERCHANT_ID', 'MERCHANT ID GOES HERE', 'Firepay merchant ID', '6', '2', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Account ID', 'MODULE_PAYMENT_FIREPAYc_ACCOUNT_ID', 'ACCOUNT ID GOES HERE', 'FIREPAY ACCOUNT ID', '6', '2', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Password', 'MODULE_PAYMENT_FIREPAYc_PASSWORD', 'PASSWORD GOES HERE', 'FIREPAY Password', '6', '2', now())"); Thanks, Eileen Link to comment Share on other sites More sharing options...
mattice Posted December 2, 2002 Share Posted December 2, 2002 tep_draw_hidden_field('FullTotal', number_format($order->info['total'] * That's not correct by the looks of it. It's missing whatever it needs to be multiplied with plus the closing brackets. should be: tep_draw_hidden_field('FullTotal', number_format($order->info['total'] * $whatever)); Mattice "Politics is the art of preventing people from taking part in affairs which properly concern them" Link to comment Share on other sites More sharing options...
Guest Posted December 2, 2002 Share Posted December 2, 2002 Thanks Mattice - Actually I cut the code off there - the actual code does read tep_draw_hidden_field('FullTotal', number_format($order->info['total'] * $currencies->get_value(MODULE_PAYMENT_FIREPAYc_CURRENCY), 2)) . The problem I seem to be having is a parse error (under the admin in the payment modules) that occured after I uploaded my firepayc.php file I think that it is caused by me adding in two fields - Account ID and Password. I'm going to keep playing with it but if you have any ideas I'd love to hear them! :) Thanks again, Eileen Link to comment Share on other sites More sharing options...
zebedee Posted February 21, 2003 Share Posted February 21, 2003 Were you able to get your code for a Firepay module working? I haven't started trying to write a payment module for firepay yet, I had been hoping there would already be one out there... But if not, I'll have a go. Link to comment Share on other sites More sharing options...
Guest Posted February 21, 2003 Share Posted February 21, 2003 No luck yet. I too was hoping there would be one out there. It is such a good payment processor. Anyways, because I haven't got that working yet, I haven't switched from my sh**ty catalog to my good oscommerce catalog. If you want to give it a go - I would be happy to help you. fire pay did send me some test php code to work with. Let me know. Eileen Link to comment Share on other sites More sharing options...
zebedee Posted February 21, 2003 Share Posted February 21, 2003 Up til now I've been using Psigate for the payment module, but I was hoping to switch to Firepay (seems better and a little cheaper - no monthly charge) Please could you send me the test code that you got and I'll see what I can do... Thanks Link to comment Share on other sites More sharing options...
Guest Posted February 21, 2003 Share Posted February 21, 2003 I used to be with Psigate too and I switched for the exact same reason. $99 setup and $50 per month is sooo excessive when compared to $300 set up and no monthly fees! I have the code at home - I will send it tonight. Eileen Link to comment Share on other sites More sharing options...
Guest Posted March 12, 2003 Share Posted March 12, 2003 Any news on the Firepay module ? I'd be very interested in installing it, already a FirePay customer and setting up my web shop at the moment, so hoping that someone has done the work ! I can offer my services if the code needs some development :) Link to comment Share on other sites More sharing options...
Guest Posted March 12, 2003 Share Posted March 12, 2003 Actually they just implemented a $35 monthly fee so for now we put them on hold. I am going to stick with paypal for now. Eileen Link to comment Share on other sites More sharing options...
Guest Posted March 12, 2003 Share Posted March 12, 2003 Any chance of sending me any code you can ? My FirePay account doesn't have the montly fee (I'm based in the UK), so I'd be interested in finishing anything you've got. Link to comment Share on other sites More sharing options...
Guest Posted March 14, 2003 Share Posted March 14, 2003 I have uploaded what I have to http://www.eileenbrennan.ca/firepay you will be able to download what I have from there for the next week or so. Good Luck. If you get it working - post it as a module. I am sure there are a few other interested people. Eileen Link to comment Share on other sites More sharing options...
Guest Posted March 27, 2003 Share Posted March 27, 2003 I have uploaded what I have tohttp://www.eileenbrennan.ca/firepay How can I download your .php files? Your server compiles them before sending them to me, so I can never see the source. Has anyone had any success with getting a payment module to work with firepay? Link to comment Share on other sites More sharing options...
Guest Posted March 29, 2003 Share Posted March 29, 2003 Alright, I've created a payment module for SFCommerce / FirePay :wink: I've uploaded it as a contribution; find it at: http://www.oscommerce.com/community/contributions,1109 It works great if your site only processes one currency. The problem with SureFire accounts is that you have a default currency set up with your account, so all totals sent throught the FirePay gateway are assumed to be in that currency. I'm sure it wouldn't be hard to convert it to that currency before you send it, but then you'd be using the exchange rates defined in your admin rather than ones maintained by FirePay. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.