}
                                        });
                                    } catch (err) {
                                        document.getElementById("spinner-0").style.display = "none";
                                        console.log(err);
                                        alert('Oops, there was a problem with your payment. Please try again later');
                                    }
                                } else {
                                    document.getElementByI