add receipt page for plan

This commit is contained in:
2024-08-12 19:23:44 +02:00
parent 5ab6ad85f7
commit 4dfb28ad3d
4 changed files with 37 additions and 2 deletions

View File

@ -66,8 +66,12 @@ function stripePaymentMethodHandler(result, plan_id, api) {
.then(function (data) {
console.log(data);
processing.classList.add("d-none");
// set hidden vars
// submit the form
showCardSuccess();
sessionStorage.first_name = document.getElementById("first-name").value;
sessionStorage.last_name = document.getElementById("last-name").value;
sessionStorage.amount = document.getElementById("amount").value;
sessionStorage.last_four = result.paymentMethod.card.last4;
location.href = "/receipt/bronze";
});
}
}