skyblade2954
skyblade2954
WWasp-lang
Created by skyblade2954 on 11/18/2024 in #đŸ™‹questions
Where is the /src/payment/paymentProcessor.ts?
"If you'd like, you can start with a clean project with the newest stater and then copy paste your code into it." I will do it. Yes. But I don't remeber everything that I did until this time. Postgre Db, fly.io configuration things like that, I am not sure if I need to do all of them again. I updated my wasp and OpenSaaS. Created new project and transferring everything. Thank you.
17 replies
WWasp-lang
Created by skyblade2954 on 11/18/2024 in #đŸ™‹questions
Where is the /src/payment/paymentProcessor.ts?
How we should do it, what is the best way? Do we have a guide for it?
17 replies
WWasp-lang
Created by Killshot on 6/20/2024 in #đŸ™‹questions
Lemon Squeezy Integration into OpenSaas (Alternative to Stripe)
If he didn't changed much, and just wants the latest updates?
106 replies
WWasp-lang
Created by Killshot on 6/20/2024 in #đŸ™‹questions
Lemon Squeezy Integration into OpenSaas (Alternative to Stripe)
Can we have a more clean solution for this? Like this "copy-paste the relevant code into your project" is probably a fixed process. Like change version of wasp to corresponding version and use a command like "wasp update new" which would copy paste the relevant updates to your project
106 replies
WWasp-lang
Created by skyblade2954 on 11/18/2024 in #đŸ™‹questions
Where is the /src/payment/paymentProcessor.ts?
How do you update OpenSaaS to a newer version? Where should I download and copy paste the OpenSaaS project from github repo? @kapa.ai
17 replies
WWasp-lang
Created by skyblade2954 on 11/18/2024 in #đŸ™‹questions
Where is the /src/payment/paymentProcessor.ts?
How do you update OpenSaaS to a newer version? Where should I download and copy paste the OpenSaaS project from github repo? @kapa.ai
17 replies
WWasp-lang
Created by skyblade2954 on 11/18/2024 in #đŸ™‹questions
Where is the /src/payment/paymentProcessor.ts?
@kapa.ai
17 replies
WWasp-lang
Created by skyblade2954 on 11/18/2024 in #đŸ™‹questions
Where is the /src/payment/paymentProcessor.ts?
I believe I need to update my OpenSaaS to newer version.
17 replies
WWasp-lang
Created by skyblade2954 on 6/14/2024 in #đŸ™‹questions
Is there any contact us email integration?
I am sending images too
30 replies
WWasp-lang
Created by skyblade2954 on 6/14/2024 in #đŸ™‹questions
Is there any contact us email integration?
My last code is like this
30 replies
WWasp-lang
Created by skyblade2954 on 6/14/2024 in #đŸ™‹questions
Is there any contact us email integration?
import { emailSender } from 'wasp/server/email'; import SendGrid from '@sendgrid/mail'; SendGrid.setApiKey(process.env.SENDGRID_API_KEY); export const sendGUIMailRequest = async (args, context) => { try { const { inputName, inputEmail, inputSubject, inputPhone, inputEmailBody, uploadedFile, } = args; // Server-side validation if (!uploadedFile.type.startsWith('image/')) { throw new Error('Invalid file type. Only images are allowed.'); } const MAX_FILE_SIZE = 5 * 1024 * 1024; // 5MB if (Buffer.byteLength(uploadedFile.data, 'base64') > MAX_FILE_SIZE) { throw new Error('File size exceeds the maximum limit of 5MB.'); } const emailText = Name: ${inputName} Email: ${inputEmail} Phone: ${inputPhone} Message: ${inputEmailBody} ; const emailHtml = <p><strong>Name:</strong> ${inputName}</p> <p><strong>Email:</strong> ${inputEmail}</p> <p><strong>Phone:</strong> ${inputPhone}</p> <p><strong>Message:</strong></p> <p>${inputEmailBody}</p> ; const msg = { from: { email: '[email protected]', name: 'customer', }, to: '[email protected]', subject: inputSubject, text: emailText, html: emailHtml, attachments: [ { content: uploadedFile.data, filename: uploadedFile.name, type: uploadedFile.type, disposition: 'attachment', }, ], }; await SendGrid.send(msg); return { success: true }; } catch (error) { console.error('Error in sendMailWithAttachment action:', error); throw error; } }; export default sendGUIMailRequest; //# sourceMappingURL=SendEmail.js.map
30 replies
WWasp-lang
Created by skyblade2954 on 6/14/2024 in #đŸ™‹questions
Is there any contact us email integration?
SENDGRID
30 replies
WWasp-lang
Created by skyblade2954 on 6/14/2024 in #đŸ™‹questions
Is there any contact us email integration?
that mail address I got from probably mail service provider
30 replies
WWasp-lang
Created by skyblade2954 on 6/14/2024 in #đŸ™‹questions
Is there any contact us email integration?
I can send from mail [email protected] to any mail address
30 replies
WWasp-lang
Created by skyblade2954 on 10/29/2024 in #đŸ™‹questions
Can I send image over Sengrid mail system on OpenSaaS?
import express from 'express';

export const serverSetup = async (expressApp) => {
// Increase the request size limit to 50MB
expressApp.use(express.json({ limit: '50mb' }));
expressApp.use(express.urlencoded({ limit: '50mb', extended: true }));
};
import express from 'express';

export const serverSetup = async (expressApp) => {
// Increase the request size limit to 50MB
expressApp.use(express.json({ limit: '50mb' }));
expressApp.use(express.urlencoded({ limit: '50mb', extended: true }));
};
Chatgpt tells me to it with this, but somehow I couldn't add a server configuration. It continue give error. What is ur suggestion?
23 replies
WWasp-lang
Created by skyblade2954 on 10/29/2024 in #đŸ™‹questions
Can I send image over Sengrid mail system on OpenSaaS?
Maybe you can help, I need to increase the body size limiti to 50 MB
23 replies
WWasp-lang
Created by skyblade2954 on 10/29/2024 in #đŸ™‹questions
Can I send image over Sengrid mail system on OpenSaaS?
@miho
23 replies
WWasp-lang
Created by skyblade2954 on 10/29/2024 in #đŸ™‹questions
Can I send image over Sengrid mail system on OpenSaaS?
Let me see what causes that.
23 replies
WWasp-lang
Created by skyblade2954 on 10/29/2024 in #đŸ™‹questions
Can I send image over Sengrid mail system on OpenSaaS?
Images needs to be smaller than 1 MB or something.
23 replies
WWasp-lang
Created by skyblade2954 on 10/29/2024 in #đŸ™‹questions
Can I send image over Sengrid mail system on OpenSaaS?
I faced an issue tho. Size bigger than 1 MB, have issues.
23 replies