Pay<\/span> <\/button> <\/p>
Your payment has been recieved. Many thanks - AMT Marketing.<\/p> <\/form> <\/div> <\/div> <\/div>');stripe=Stripe("pk_live_yKZxngQ5guZaNP7qWBXW86qz");document.querySelector("#stripePaymentModal button").disabled=!0;var payWithCard=function(n,t,i){loading(!0);n.confirmCardPayment(i,{payment_method:{card:t,billing_details:{name:$("#name").val(),email:$("#email").val(),address:{city:$("#city").val(),line1:$("#line1").val(),line2:$("#line2").val()}}}}).then(function(n){if(n.error)showError(n.error.message);else{orderComplete(n.paymentIntent.id);var t=$("#invoiceno").val(),i=$("#amount").val(),r=$("#company").val(),u="/get-client-payment-portal-details/"+n.paymentIntent.id+"/"+t+"/"+i+"/"+r;$.ajax({url:u,type:"post",cache:!1,success:function(n){n.error&&targetDiv.html(n.error);n.html&&($("#payment-form").empty(),$("#payment-form").html(n.html))},error:function(){alert("Failed.")}});console.log(n.paymentIntent)}})},orderComplete=function(n){loading(!1);document.querySelector(".result-message").setAttribute("href","https://dashboard.stripe.com/test/payments/"+n);document.querySelector(".result-message").classList.remove("hidden");document.querySelector("#stripePaymentModal button").disabled=!0},showError=function(n){loading(!1);var t=document.querySelector("#card-error");t.textContent=n;setTimeout(function(){t.textContent=""},4e3)},loading=function(n){n?(document.querySelector("#stripePaymentModal button").disabled=!0,document.querySelector("#spinner").classList.remove("hidden"),document.querySelector("#button-text").classList.add("hidden")):(document.querySelector("#stripePaymentModal button").disabled=!1,document.querySelector("#spinner").classList.add("hidden"),document.querySelector("#button-text").classList.remove("hidden"))}