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

Implement email notification with the order details #23

Open
sorokinvj opened this issue Sep 11, 2022 · 0 comments
Open

Implement email notification with the order details #23

sorokinvj opened this issue Sep 11, 2022 · 0 comments

Comments

@sorokinvj
Copy link
Owner

We are going to use Sendgrid as our email provider.

Here is what we need to do:

  • register an account on Sendgrid (Vlad)
  • Create an email template that is mobile-friendly and tested with the most popular email clients/services:
    - ios native mail
    - gmail
    - outlook
  • when we have tested HTML, we are going to create a template on Sendgrid and then integrate Sendgrid with our app. Probably the best place to send email is pages/api/stripe/webhook.ts
          case 'checkout.session.completed':
            await createOrder({ sessionId: event?.data?.object?.id })
            await sendEmail({id: ORDER_SUCCESSFUL}) // or something along this line
            break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant