checkStripePortalLInkExists in shared/constants.ts
I'm using OpenSaas with with wasp 0.13.2 and WSL2.
The documentation (https://docs.opensaas.sh/guides/stripe-integration/) says to add this code to the src/shared/constants.ts file:
isDev and checkStripePortalLinkExists are not defined and throw an error.
OpenSaaS.sh
Stripe Integration
Open SaaS is a free, open-source, full-stack SaaS starter kit for React + NodeJS.
kapa.ai•15d ago
Hi @Louis Deconinck. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Based on the knowledge sources provided, it seems that there might be some confusion regarding the
isDev
and checkStripePortalLinkExists
functions. These functions are not defined in the provided code snippet, and they are not mentioned in the provided knowledge sources.
The isDev
function is typically used to check if the current environment is a development environment. If it's not defined in your project, you might need to define it yourself or import it from a library if it's a part of one.
The checkStripePortalLinkExists
function seems to be a custom function that checks if the Stripe portal link exists. If it's not defined in your project, you might need to implement this function yourself.
However, without more context or information, it's hard to provide a more specific solution. I would recommend checking the rest of your project's code to see if these functions are defined elsewhere. If they're not, you might need to implement them yourself or consult the OpenSaaS or Wasp documentation or community for more guidance.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @Louis Deconinck, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?Louis Deconinck•14d ago
@Wasp Team Any idea how to deal with missing isDev and checkStripePortalLinkExists in sec/shared/constants.ts file when following OpenSaas docs.
Do we have to implement these functions ourselves? Like this?
Vinny (@Wasp)•14d ago
Ah this looks like a mistake. We removed this check recently I believe but forgot to remove it from the docs
So you can just ignore that portion of the docs. You should see the customer portal link in
.env.client
instead
@Louis Deconinck do you mind submitting an issue on the github repo about this? I’m on vacation and will fix it when I return.Filip•8d ago
Thanks, here's the issue: https://github.com/wasp-lang/open-saas/issues/119
GitHub
checkStripePortalLinkExists throws an error · Issue #119 · wasp-lan...
The documentation (https://docs.opensaas.sh/guides/stripe-integration/) says to add this code to the src/shared/constants.ts file: const customerPortalTestUrl = 'https//billing.stripe.com/p/log...
2.7KMembers
View on DiscordWant results from more Discord servers?
More Posts[Authentification] NetworkError when singin on a fresh installHello ,
I have an authentification NetworkError when I try to signin on a first use of the app. I Can someone help me in making chat application using waspHey I was trying to make random chat app to learn more about mern, but now i am clueless. Can someonHaving multiple generator in schema.prismaHello,
Currently if I add my entities in `main.wasp` then the generated `schema.prisma` has generatDirect to a defined page after successful loginHello
I have the standard LoginPage, as given in the ToDo App tutorial (see picture).
I now would lRemove email loginIs it possible to only rely on OAuth and disable email login when using OpenSaas? When I comment outHow to use Env variables in main.wasp?I want to set the email authentication
`fromField.name` to `process.env.FROM_NAME`
and `fromField.can not find "wasp/server/_types" module or declarationany suggestion? this error won't effect dev, but I can't have the right type with action's params arDisable email loginIf I only want Google signup, is there a way to remove the email login? I tried commenting
```
emailDo I have a way to use useLazyQuery ?My app filters some data.
I need to be able to refetch whenever the user clicks on "search" with theWhere to see migration files?I have messed up one migration (because I had to delete my local code), and now I don't know where tFile upload size limitI'm trying to implement max file upload size to the s3 bucket. I've handled the front-end but I worrAuthis there a sample bypass to login the auth while in developmentQuick Start not working?I'm following this tutorial: https://wasp-lang.dev/docs/quick-start
After opening my terminal and rI cant see ubunbtu on my Linux sub system folderI just started with this programming stuff and i wanted to try my app with this new ai called magegpIs it possible to separate client and server wasp build?each time I update stuff on client, and want to push to netlify, I need to run wasp build, but it refly.io deployment errorI tried to deploy to fly.io, and I set DATABASE_URL, and I tested it can connect successfully with dfront end developers demand in job marketCan anyone please tell me about the demand of a beginner level front end developer in job market nowPassing Context for Dependency InjectionIs there a standard pattern for passing the context object for database interaction to functions?
W