Skip to content

Commit

Permalink
chore: show spinner while doing the payments
Browse files Browse the repository at this point in the history
  • Loading branch information
amihajlovski committed Dec 3, 2024
1 parent c4eee04 commit f9b6ee7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,15 @@ function handleAuthorised(response) {
amount: response.fullResponse?.amount,
});
document.querySelector('#showConfirmationForm').submit();
$.spinner().stop();
}

function handleError() {
document.querySelector('#result').value = JSON.stringify({
error: true,
});
document.querySelector('#showConfirmationForm').submit();
$.spinner().stop();
}

function handleGooglePayResponse(response) {
Expand All @@ -175,6 +177,7 @@ function handleGooglePayResponse(response) {
}

function paymentFromComponent(data) {
$.spinner().start();
$.ajax({
url: window.paymentFromComponentURL,
type: 'post',
Expand Down

0 comments on commit f9b6ee7

Please sign in to comment.