var component = document.querySelector('spektrix-donate'); component.addEventListener('success', function (e) { console.log('event', e) })