diff --git a/resources/js/panel/credits.vue b/resources/js/panel/credits.vue index 57a02a6..f547e8c 100644 --- a/resources/js/panel/credits.vue +++ b/resources/js/panel/credits.vue @@ -29,7 +29,9 @@ - +
@@ -74,6 +76,7 @@ function getSecret() { //Gets key from the server then sends it with stripe function pay() { + console.log() this.getSecret().then(secret => { if (!secret) {return} this.loading = true @@ -82,8 +85,9 @@ function pay() { card: this.card, billing_details: {name: document.getElementById('billing-name').value}, - setup_future_usage: document.querySelector('#save-card input') == 'on' ? 'off_session' : null - } + }, + setup_future_usage: document.querySelector( + "#save-card input").value == 'on' ? 'off_session' : null }) }).then(result => { if (result.error) { @@ -106,7 +110,7 @@ export default { return {packs: {credits10: 0, credits50: 0, credits100: 0, credits1000: 0}, loading: false, stripe: Stripe(process.env.VUE_APP_STRIPE_KEY), card: - null, cardValid: false, billingName: null, selectSaved: true} + null, billingName: null, selectSaved: true, cardValid: false} }, computed: {total}, methods: {getSecret, pay}, diff --git a/resources/js/panel/orders.vue b/resources/js/panel/orders.vue index 5450a3d..b9c7c1c 100644 --- a/resources/js/panel/orders.vue +++ b/resources/js/panel/orders.vue @@ -17,6 +17,7 @@ +

Orders are typically completed within 1-5 days.

Order History

diff --git a/resources/js/panel/payment-card.vue b/resources/js/panel/payment-card.vue index df8ff5e..7bdb90a 100644 --- a/resources/js/panel/payment-card.vue +++ b/resources/js/panel/payment-card.vue @@ -1,7 +1,7 @@