Hi,
We are seeing an error in sdk.js. :
Uncaught TypeError: Cannot convert undefined or null to object at Function.keys (<anonymous>) at Object.t.registerElementEventListener (sdk.js:formatted:133) at e.addEventListener (sdk.js:formatted:385) at my_setup (mypayment.js:439)
SDK: https://checkout.sandbox.dev.clover.com/sdk.js
mypayment.js:439:
const clover = new Clover('xyz'); const elements = clover.elements(); const styles = { input: { 'width' : '20em', 'font-size' : '20px', 'color' : '#43b02a', 'border' : '1px gray dotted', 'padding' : '5px', 'margin' : '3px', 'font-weight': 'bold' } }; const card = elements.create('CARD', styles); card.mount('#clover-card-element'); // Create an instance of the card Element. // Handle real-time validation errors from the card Element. //Below is Line 439: ********************************* card.addEventListener('change', function(event) { if (event.error) { displayError.textContent = event.error.message; } else { displayError.textContent = ''; } });
I'm fairly sure this did not occur couple of weeks back when we completed this feature.
Is this a known issue?