vbwebsites Posted December 1, 2006 Posted December 1, 2006 I am doing a website for a non profit company that also has a for profit sister company. He has two Authorize.net accounts and wants to be able to utilize both. Is there some type of cont. addon that would allow "A Product" to be processed via "A Authorize.net acct" and "B Product" via "B Authorize acct". I was thinking this would be triggered when you add a new product, maybe a drop down as to which account processes that product. But then the issue of if a customer adds Product A and B is there a way to cancel out one of the products and let the customer know the orders must be done seperately? Any thoughts? Any Questions? Thanks in Advance! Brady Quote
seanharper Posted January 17, 2007 Posted January 17, 2007 I am doing a website for a non profit company that also has a for profit sister company. He has two Authorize.net accounts and wants to be able to utilize both. Is there some type of cont. addon that would allow "A Product" to be processed via "A Authorize.net acct" and "B Product" via "B Authorize acct". I was thinking this would be triggered when you add a new product, maybe a drop down as to which account processes that product. But then the issue of if a customer adds Product A and B is there a way to cancel out one of the products and let the customer know the orders must be done seperately? Any thoughts? Any Questions? Thanks in Advance! Brady Open up the authorize.net AIM (you are using AIM right?) module and check it out. Find $my_auth_type = MODULE_PAYMENT_AUTHORIZENET_AIM_AUTHORIZATION_TYPE == 'Authorize' ? 'AUTH_ONLY': 'AUTH_CAPTURE'; at around line 240 then slightly below: x_login => MODULE_PAYMENT_AUTHORIZENET_AIM_LOGIN, // The login name as assigned to you by authorize.net x_tran_key => MODULE_PAYMENT_AUTHORIZENET_AIM_TXNKEY, // The Transaction Key (16 digits) is generated through the merchant interface then do something like this: $any_store_A = 0; $products = $order->products; for ($i=0, $n=sizeof($products); $i<$n; $i++) { $check_query = tep_db_query("select products_id from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products[$i]['id'] . "' and storeA= '1'"); if (tep_db_num_rows($check_query) > 0) { $any_store_A = true; break; } } then if ($any_store_A > 0){ x_login => MODULE_PAYMENT_AUTHORIZENET_AIM_LOGIN, // The login name as assigned to you by authorize.net x_tran_key => MODULE_PAYMENT_AUTHORIZENET_AIM_TXNKEY, // The Transaction Key (16 digits) is generated through the merchant interface }else{ x_login => AIM_LOGIN_B, // The login name as assigned to you by authorize.net x_tran_key => B_TXNKEY, // The Transaction Key (16 digits) is generated through the merchant interface } something like that. you will need to write the interface code, I am not going to make it that easy on you... Quote
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.
Note: Your post will require moderator approval before it will be visible.