diff --git a/.gitignore b/.gitignore index 8d078fc..59d349d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ **/c.html database.yml docker/docker-compose.yml +cred.txt +dist/ diff --git a/cmd/web/templates/terminal.page.gohtml b/cmd/web/templates/terminal.page.gohtml index 7570a4a..3d025bc 100644 --- a/cmd/web/templates/terminal.page.gohtml +++ b/cmd/web/templates/terminal.page.gohtml @@ -71,6 +71,11 @@ const processing = document.getElementById("processing-payment"); stripe = Stripe(''); // TODO: Publish key to be added +function hidePayButton() { + payButton.classList.add("d-none"); + processing.classList.remove("d-none"); +} + function val() { let form = document.getElementById("charge_form"); @@ -81,6 +86,7 @@ function val() { return; } form.classList.add("was-validated"); + hidePayButton(); } (function () {