diff --git a/Assets/Aide.png b/Assets/Aide.png new file mode 100644 index 000000000..6d7bf83a5 Binary files /dev/null and b/Assets/Aide.png differ diff --git a/Assets/WebsiteAssets/templates/plans.mustache b/Assets/WebsiteAssets/templates/plans.mustache index a1c5a56aa..2a02c5025 100644 --- a/Assets/WebsiteAssets/templates/plans.mustache +++ b/Assets/WebsiteAssets/templates/plans.mustache @@ -112,7 +112,7 @@ }).then(async function(result) { if (!result.ok) { console.error('Could not create Stripe checkout session', await result.text()); - alert('The checkout session could not be created. Please contact support@joplincloud.com for support.'); + alert('The checkout session could not be created. Please contact us on the forum for support.'); } else { return result.json(); } diff --git a/packages/server/public/js/stripe_utils.js b/packages/server/public/js/stripe_utils.js deleted file mode 100644 index ea55390c8..000000000 --- a/packages/server/public/js/stripe_utils.js +++ /dev/null @@ -1,43 +0,0 @@ -// function stripeConfig() { -// if (!joplin || !joplin.stripeConfig) throw new Error('Stripe config is not set'); -// return joplin.stripeConfig; -// } - -// function newStripe() { -// return Stripe(stripeConfig().publishableKey); -// } - -// async function createStripeCheckoutSession(priceId) { -// const urlQuery = new URLSearchParams(location.search); -// const coupon = urlQuery.get('coupon') || ''; - -// console.info('Creating Stripe session for price:', priceId, 'Coupon:', coupon); - -// const result = await fetch(`${stripeConfig().webhookBaseUrl}/stripe/createCheckoutSession`, { -// method: 'POST', -// headers: { -// 'Content-Type': 'application/json', -// }, -// body: JSON.stringify({ -// priceId: priceId, -// coupon: coupon, -// }), -// }); - -// if (!result.ok) { -// console.error('Could not create Stripe checkout session', await result.text()); -// alert('The checkout session could not be created. Please contact support@joplincloud.com for support.'); -// } else { -// return result.json(); -// } -// } - -// async function startStripeCheckout(priceId) { -// const data = await createStripeCheckoutSession(stripeId); - -// const result = await stripe.redirectToCheckout({ -// sessionId: data.sessionId, -// }); - -// console.info('Redirected to checkout', result); -// } diff --git a/readme/faq_joplin_cloud.md b/readme/faq_joplin_cloud.md index 8bea3961b..e5bc09858 100644 --- a/readme/faq_joplin_cloud.md +++ b/readme/faq_joplin_cloud.md @@ -18,7 +18,7 @@ Moreover, by getting a subscription you are supporting the development of the pr We offer a 50% Education Discount for students and teachers. To claim it, please contact us from your university or school email address. You will then receive a URL you can use to subscribe to Joplin Cloud while benefiting from the 50% discount. This is valid for a whole year and can be renewed for as long as you are in education by contacting us again. -We may also offer bulk discounts for companies, associations and nonprofit organisations. Please [contact us](mailto:support@joplincloud.com) for more details. +We may also offer bulk discounts for companies, associations and nonprofit organisations. Please [contact us](https://raw.githubusercontent.com/laurent22/joplin/dev/Assets/Aide.png) for more details. ## Where is Joplin Cloud data located?