InvalidElementTypeError

The developer attempted to attach a payment method with an invalid selector or element type.

Properties

JS
JavaScript

try {

  const result = await card.attach('input');

}

catch(e) {

  alert(`Card not attached: ${e.name} ${e.message}`);

}