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