Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

checkStripePortalLinkExists throws an error #119

Closed
LouisDeconinck opened this issue May 4, 2024 · 1 comment
Closed

checkStripePortalLinkExists throws an error #119

LouisDeconinck opened this issue May 4, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation shouldfix

Comments

@LouisDeconinck
Copy link

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/login/test_...'
const customerPortalProdUrl = undefined

export const STRIPE_CUSTOMER_PORTAL_LINK = isDev ? customerPortalTestUrl : customerPortalProdUrl;

checkStripePortalLinkExists(STRIPE_CUSTOMER_PORTAL_LINK); // throws an error if the link is not set in production

isDev and checkStripePortalLinkExists are not defined and throw an error.

@vincanger mentioned in the Discord:
"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"

@Martinsos Martinsos added documentation Improvements or additions to documentation shouldfix labels May 6, 2024
@vincanger
Copy link
Collaborator

@LouisDeconinck this has been fixed in the most recent update --> https://docs.opensaas.sh/guides/stripe-integration/#get-your-customer-portal-link

thanks for the heads up :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation shouldfix
Projects
None yet
Development

No branches or pull requests

3 participants