diff --git a/HomeUI/src/views/apps/Management.vue b/HomeUI/src/views/apps/Management.vue index 2cb067cce..224199b15 100644 --- a/HomeUI/src/views/apps/Management.vue +++ b/HomeUI/src/views/apps/Management.vue @@ -10660,7 +10660,12 @@ export default { } this.fiatCheckoutURL = checkoutURL.data.data; this.checkoutLoading = false; - this.openSite(checkoutURL.data.data); + try { + this.openSite(checkoutURL.data.data); + } catch (error) { + console.log(error); + this.showToast('error', 'Failed to open Stripe checkout, pop-up blocked?'); + } } catch (error) { console.log(error); this.showToast('error', 'Failed to create stripe checkout'); @@ -10715,7 +10720,12 @@ export default { } this.fiatCheckoutURL = checkoutURL.data.data; this.checkoutLoading = false; - this.openSite(checkoutURL.data.data); + try { + this.openSite(checkoutURL.data.data); + } catch (error) { + console.log(error); + this.showToast('error', 'Failed to open Paypal checkout, pop-up blocked?'); + } } catch (error) { console.log(error); this.showToast('error', 'Failed to create PayPal checkout'); diff --git a/HomeUI/src/views/apps/RegisterFluxApp.vue b/HomeUI/src/views/apps/RegisterFluxApp.vue index 76d93653e..331ab070f 100644 --- a/HomeUI/src/views/apps/RegisterFluxApp.vue +++ b/HomeUI/src/views/apps/RegisterFluxApp.vue @@ -3861,7 +3861,12 @@ export default { } this.fiatCheckoutURL = checkoutURL.data.data; this.checkoutLoading = false; - this.openSite(checkoutURL.data.data); + try { + this.openSite(checkoutURL.data.data); + } catch (error) { + console.log(error); + this.showToast('error', 'Failed to open Stripe checkout, pop-up blocked?'); + } } catch (error) { console.log(error); this.showToast('error', 'Failed to create stripe checkout'); @@ -3916,7 +3921,12 @@ export default { } this.fiatCheckoutURL = checkoutURL.data.data; this.checkoutLoading = false; - this.openSite(checkoutURL.data.data); + try { + this.openSite(checkoutURL.data.data); + } catch (error) { + console.log(error); + this.showToast('error', 'Failed to open Paypal checkout, pop-up blocked?'); + } } catch (error) { console.log(error); this.showToast('error', 'Failed to create PayPal checkout'); diff --git a/HomeUI/src/views/apps/marketplace/AppView.vue b/HomeUI/src/views/apps/marketplace/AppView.vue index d21c29880..7ba31f645 100644 --- a/HomeUI/src/views/apps/marketplace/AppView.vue +++ b/HomeUI/src/views/apps/marketplace/AppView.vue @@ -1147,7 +1147,12 @@ export default { } fiatCheckoutURL.value = checkoutURL.data.data; checkoutLoading.value = false; - openSite(checkoutURL.data.data); + try { + openSite(checkoutURL.data.data); + } catch (error) { + console.log(error); + showToast('error', 'Failed to open Stripe checkout, pop-up blocked?'); + } } catch (error) { console.log(error); showToast('error', 'Failed to create stripe checkout'); @@ -1207,7 +1212,12 @@ export default { } fiatCheckoutURL.value = checkoutURL.data.data; checkoutLoading.value = false; - openSite(checkoutURL.data.data); + try { + openSite(checkoutURL.data.data); + } catch (error) { + console.log(error); + showToast('error', 'Failed to open PayPal checkout, pop-up blocked?'); + } } catch (error) { console.log(error); showToast('error', 'Failed to create PayPal checkout');