Possible bug in iframe.wepay.js

44 views
Skip to first unread message

Gaurav

unread,
Aug 24, 2012, 11:59:06 PM8/24/12
to wepa...@googlegroups.com
It seems that there might be a bug in the WePay.iframe_checkout function.

WePay.iframe_checkout = function(iframe_container_id, checkout_uri) {
......
	iframe.setAttribute('src', checkout_uri);
	iframe.setAttribute('id', 'wepay_checkout_iframe');
	iframe.setAttribute('scrolling', 'no');
	
--->	WePay.iframe_checkout = iframe;

	container.appendChild(iframe);
	return true;
};

Y'all seem to be reassigning WePay.iframe_checkout to be the iframe element, thereby causing errors on any future calls to what was previously assumed to be a function. 

Cheers,
Gaurav

Reply all
Reply to author
Forward
0 new messages