From e5fc1f2fc5c8718e8cd223c5fd0a68c1f759218d Mon Sep 17 00:00:00 2001 From: glennmichael123 Date: Thu, 14 Nov 2024 22:41:54 +0900 Subject: [PATCH] chore: wip --- resources/functions/billing/payments.ts | 1 + resources/stores/payment.ts | 2 ++ .../components/billing/payment-method.vue | 25 +++++------------- storage/framework/core/browser/src/index.ts | 1 + .../framework/core/browser/src/utils/index.ts | 1 + .../framework/core/browser/src/utils/plans.ts | 3 +++ .../payments/src/billable/payment-method.ts | 26 ++++++++++++------- 7 files changed, 31 insertions(+), 28 deletions(-) create mode 100644 storage/framework/core/browser/src/utils/plans.ts diff --git a/resources/functions/billing/payments.ts b/resources/functions/billing/payments.ts index 55603f750b..1959dceaa7 100644 --- a/resources/functions/billing/payments.ts +++ b/resources/functions/billing/payments.ts @@ -1,5 +1,6 @@ import { loadStripe } from '@stripe/stripe-js' + export const publishableKey = import.meta.env.FRONTEND_STRIPE_PUBLIC_KEY const stripe = ref(null as any) diff --git a/resources/stores/payment.ts b/resources/stores/payment.ts index a2ea4c36b3..6a8c12c1fd 100644 --- a/resources/stores/payment.ts +++ b/resources/stores/payment.ts @@ -1,3 +1,5 @@ +import { test } from '@stacksjs/browser' + const apiUrl = `http://localhost:3008` interface StripePaymentMethod { diff --git a/resources/views/dashboard/components/billing/payment-method.vue b/resources/views/dashboard/components/billing/payment-method.vue index 589e3a10ad..9306f8c7a5 100644 --- a/resources/views/dashboard/components/billing/payment-method.vue +++ b/resources/views/dashboard/components/billing/payment-method.vue @@ -1,5 +1,6 @@