.dotpay_manage_cards td, th { text-align: center; vertical-align: middle; font-weight: bold; } .dotpay_remove_card { margin: auto; color: red; } .dotpay_manage_cards th { background-color: #e4f6ff; } jQueryDotpayOCManage = function(){ if (typeof jQuery != 'undefined') { jQuery(document).ready(function(){ jQuery('.dotpay_remove_card').on('click', function() { if( confirm("Uwaga! \n\nCzy na pewno chcesz usunąć wybraną kartę z tego sklepu? \n") ) { jQuery.ajax({ "url":"https://print-druk.pl/?wc-api=Dotpay_oc_rmcard", "method":"POST", "data":{ "cardId":jQuery(this).data('id') }, "success":function(r){ if(r=='1') { jQuery('#dotpay_list_of_cc').remove(); jQuery('#dp_after_remove_cc').html(" Sukces! Twoja karta została pomyślnie usunięta. "); setTimeout(function(){ location.reload(); }, 5000); } else { alert("Nie możesz usunąć tej karty płatniczej"); } } }); } }); }); }else{ console.log("\n -------------------------------------------------------------------------------------\n"); console.log("%cWarning!","color:red;font-family:system-ui;font-size:3rem;-webkit-text-stroke: 1px black;font-weight:bold;"); console.log("\n%cLoad jQuery first in your template! Then Dotpay plugin.", "background: red; color: yellow; font-size: 1.2rem"); console.log("%cOtherwise the Dotpay plugin may not work properly!", "color: red; font-size: 1rem;font-weight: bold;"); console.log("\n -------------------------------------------------------------------------------------\n"); } } Logotyp karty Marka karty Maskowany numer Data rejestracji Wyrejestruj Nie posiadasz jeszcze zarejestrowanych kart. if(window.jQuery){ jQueryDotpayOCManage(); } else{ var script = document.createElement('script'); document.head.appendChild(script); script.type = 'text/javascript'; script.src = "//ajax.googleapis.com/ajax/libs/jquery/3.5.0/jquery.min.js"; script.onload = jQueryDotpayOCManage; }