Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Authorize.net Consolidated 1.7b -- javascript CVV


gadgetfox

Recommended Posts

Minor, but annoying problem with the Authorize.net Consolidated 1.7b Curlfix contribution... Wondering if anyone has tangled with (and resolved) this:

 

The link to bring up the CVV information via <A HREF="java script:CVVPopUpWindow"> on the checkout screen does not seem to want to work in Mozilla Firefox. It works in Internet Explorer, but returns a javascript error in the information bar.

 

For the time being, I've just turned it into a normal HREF URL with a "target=_blank" tag so that it will work for everyone, but does anyone know what Javascript bugaboo is rearing its ugly head here?

Link to comment
Share on other sites

  • 5 weeks later...

This is a little late but it still might apply to others. A solution to the pop up window (It also doesn't work on Macs) is to relocate the CCVPopUpWindow javascript down with the other javascript on the page.

 

 

 

Delete

#######

<script language="javascript" type="text/javascript">!--

/********************************

* Addition for Authorize.net Consolidated

* by Austin519 - CVV PopUp Window

* If using a custom checkout_payment.php

* paste the following lines into your file

********************************/

function CVVPopUpWindow(url) {

window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res

izable=no,copyhistory=no,width=600,height=233,screenX=150,screenY=150,top=150,lef

t=150')

}

//--></script>

#######

 

 

Insert this code - see below

##################

 

/********************************

* Addition for Authorize.net Consolidated

* by Austin519 - CVV PopUp Window

* If using a custom checkout_payment.php

* paste the following lines into your file

********************************/

function CVVPopUpWindow(url) {

window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res

izable=no,copyhistory=no,width=600,height=233,screenX=150,screenY=150,top=150,lef

t=150')

}

 

 

###################

 

Existing Javascript

#############

 

<script language="javascript"><!--

 

<<<Insert above code here>>>

 

 

var selected;

 

 

#############

 

A hat's off to Austin519 for this contribution. It ties up a lot of the loose ends found in the eariler versions of the Authorize.net AIM modules.

Link to comment
Share on other sites

  • 9 months later...

I still cannot get this to work here is my code:

 

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<script language="javascript">
function CVVPopUpWindow(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res
izable=no,copyhistory=no,width=600,height=233,screenX=150,screenY=150,top=150,lef
t=150')
}
var selected;

function selectRowEffect(object, buttonSelect) {
 if (!selected) {
if (document.getElementById) {
  selected = document.getElementById('defaultSelected');
} else {
  selected = document.all['defaultSelected'];
}
 }

 if (selected) selected.className = 'moduleRow';
 object.className = 'moduleRowSelected';
 selected = object;

// one button is not an array
 if (document.checkout_payment.payment[0]) {
document.checkout_payment.payment[buttonSelect].checked=true;
 } else {
document.checkout_payment.payment.checked=true;
 }
}

function rowOverEffect(object) {
 if (object.className == 'moduleRow') object.className = 'moduleRowOver';
}

function rowOutEffect(object) {
 if (object.className == 'moduleRowOver') object.className = 'moduleRow';
}
//--></script>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...