// handle showing the modal if ($('#modal').is(":visible")) { $('#modal-content').replaceWith('
You must be on the Studio Plan to accept payments.<\/p><\/div><\/div>'); } else { $('.iziModal-overlay').remove(); $('#modal').remove(); $('body').append('
You must be on the Studio Plan to accept payments.<\/p><\/div><\/div>'); $("#modal").iziModal({ theme: 'minisite', width: 360, radius: 3, zindex: 5000, autoOpen: true, focusInput: true, closeButton: true, overlay: true, overlayClose: true, overlayColor: 'rgba(51, 51, 51, 0.4)', transitionIn: 'fadeInDown', // comingIn, bounceInDown, bounceInUp, fadeInDown, fadeInUp, fadeInLeft, fadeInRight, flipInX. transitionOut: 'fadeOutUp' // comingOut, bounceOutDown, bounceOutUp, fadeOutDown, fadeOutUp, fadeOutLeft, fadeOutRight, flipOutX }); }