Zen Cart Logo
Forums / All Other Contributions/Addons / Can I integrate JROX JAM, and Authorize.net?

Can I integrate JROX JAM, and Authorize.net?

Views: 1,515

Results 1 to 10 of 10
4 Apr 2011, 1:18 PM
#1
spidlewebs avatar

spidlewebs

New Zenner

Join Date:
Apr 2011
Posts:
4
Plugin Contributions:
0

Can I integrate JROX JAM, and Authorize.net?

Hi,

I'm trying to add the JROX affiliate manager software to a zencart site (version 1.3.9d). Everything is setup and seems to be working but the commissions are not being written to the database.

I've seen other posts saying not to use PayPal Standard with JROX Affiliate Manager and I'm wondering if there's a problem with using Authorize.net. Does anyone have Affiliate Manager working with Authorize.net?

I've posted on the JROX site forum but haven't gotten any responses that have helped to get this to work. We've tried changing the javascript code in the checkout success page to a hidden image and to php code but still the commission is not being written to the database. I can view the souce for the checkout success page and see the required code with the transaction id and amount. I can also view the cookie on my PC and see that the affiliate id was correctly written.

I've pasted the generated code into a browser, hit enter and the transaction was written to the database. I've pasted the code into a test file, uploaded it, and executed the test file from the browser and this also worked. However, when I successfully complete a payment at Authorize.net and return to the checkout success page the transaction does NOT get written to the database.

Anyone have any idea what might be the problem?

4 Apr 2011, 8:51 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Can I integrate JROX JAM, and Authorize.net?

Sounds like your required template changes aren't in the right place, and thus aren't showing up on the checkout_success screen, and thus the image/javascript trigger isn't happening, and thus the commission info can't get written to the JAM database because JAM never hears it, because your store isn't actually displaying it.

I'd be trying a test transaction and looking at the browser's raw HTML source on the checkout_success page to confirm what the actual HTML is that's being prepared for triggering the JAM image/script. If it's not there at all, then you've integrated it wrong. If it's there but wrong, then you'll need to tweak your integration.

4 Apr 2011, 9:40 PM
#3
spidlewebs avatar

spidlewebs

New Zenner

Join Date:
Apr 2011
Posts:
4
Plugin Contributions:
0

Re: Can I integrate JROX JAM, and Authorize.net?

The code is there.

When I get to the checkout_success page, I do a view page source and can see the code. For the javascript version it looks something like:

<script language="JavaScript" type="text/javascript" src="http://mysite.com/affiliates/sale.php?amount=23.99&trans_id=1108"></script>

For the hidden image version it looks something like:

<img src="http://mysite.com/affiliates/sale.php?amount=23.99&trans_id=1108" border="0" height="1" width="1" />

I can paste mysite.com/affiliates/sale.php?amount=23.99&trans_id=1108 into the browser, hit enter and the transaction is written to the database.

I can't figure out why the checkout_success page isn't causing it to write to the database. The code is in the footer where it's supposed to be.

5 Apr 2011, 7:01 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Can I integrate JROX JAM, and Authorize.net?

Well, if the code is in the raw HTML, then the problem isn't on the Zen Cart side. Time to ask JROX what weird thing might be wrong on your JAM setup.

Have you tried creating a plain HTML file with just the <img> tag in it and see if opening that HTML file with your browser records the sale?
Have you got some sort of img/script blocking tool turned on in your site or in your own browser that could be blocking it? It's not uncommon for stuff like that to be blocked intentionally for privacy reasons.

5 Apr 2011, 7:43 PM
#5
spidlewebs avatar

spidlewebs

New Zenner

Join Date:
Apr 2011
Posts:
4
Plugin Contributions:
0

Re: Can I integrate JROX JAM, and Authorize.net?

I've tried asking JROX - got nowhere.

I've tried creating a plain HTML file with just the <img> tag in it. It works.

I've tied the Javascript (that you wrote for JROX), the image and the php methods. None work from within checkout_success page. I believe the php method would eliminate the issue with a pop-up blocker.

I've tried putting echo statements at the beginning of the JROX sale.php file. They do NOT display on the page or within the code for the checkout_success page. It's like the sale.php code is not being called at all.

When I'm at Authorize.net the URL is https://secure.authorize.net/gateway/transact.dll

When I click submit and get returned to the website the URL is still **https://secure.authorize.net/gateway/transact.dll **even though the checkout_successful page is displayed with the "Thank you. We Appreciate Your Business" message.

Shouldn't the URL change to be the store URL?

Thanks,
James

5 Apr 2011, 10:15 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Can I integrate JROX JAM, and Authorize.net?

The URL will not change until you click a link on the checkout_success screen. That's a limitation of using Authorize.net SIM methodology. If you use AIM instead then you won't have that happen. But that's unlikely to be related to your JAM problem.

Putting echo/die statements in the JAM sale.php file won't tell you anything unless you're calling the sale.php directly by clicking a link or typing the URL into your browser. Calling it via javascript or an img src tag often suppresses the output, making that not always a useful method of troubleshooting.

5 Apr 2011, 10:16 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Can I integrate JROX JAM, and Authorize.net?

If the other <img> tags on the checkout_success page are working fine, then there's no Zen Cart related reason why an <img> tag for JAM would be a problem.

7 Apr 2011, 12:18 AM
#8
ssbikini avatar

ssbikini

New Zenner

Join Date:
Apr 2011
Posts:
2
Plugin Contributions:
0

Re: Can I integrate JROX JAM, and Authorize.net?

Please help me too! I have 3 months trying to make jrox work at my store!!! I have asked them many times but they dont reply to FREE users TOO BAD!

I have installed 3 dfferent times and i have changed the zencart affiliates/templates/template_defautl/checkout_success/tpl_footer.php file with my data.

Afifiliates can see the clicks counter, it is working ok but no sale is recorded, Please help me :(

(Total Clicks 125

Total Commissions None ) (3 tests sales was made)

7 Apr 2011, 12:43 AM
#9
ssbikini avatar

ssbikini

New Zenner

Join Date:
Apr 2011
Posts:
2
Plugin Contributions:
0

Re: Can I integrate JROX JAM, and Authorize.net?

I have seen the html code at checkout_success and the code is there:

http://www.mydomain.com/snsaffiliates/sale.php?amount=0.02&trans_id=196

I have tried copying it to a browser but the transactions was NOT recorded :S
:(:(:(

12 Apr 2011, 6:49 PM
#10
spidlewebs avatar

spidlewebs

New Zenner

Join Date:
Apr 2011
Posts:
4
Plugin Contributions:
0

Re: Can I integrate JROX JAM, and Authorize.net?

Dr. Byte,

Thanks for your help. I've got it working now. I "think" the problem was using SIM. The JAM software writes a cookie with the affiliate id and domain when an ad is clicked. This cookie has to be read to record the commission to the correct affiliate. The cookie is written with my domain (mysite.com) but when returning from Authorize.net, using SIM, the URL has the domain authorize.net. I "think" this might keep the code from reading the cookie because the domain doesn't match. I tried switching from SIM to AIM and it works.

btw - I was able to switch over to AIM by following yet more of your helpful posts. Thanks so much for helping the Zen Cart community.

James