The billing module has been refined and enhanced to include deeper validation and detailing of billing plans and products. The checkout session creation process was revised to handle more complex scenarios, incorporating better parsing and validation. Additional validations were added for the plan and product schemas, improving product details extraction, and rearranging of module exports was made for better organization. The code refactor allows easier future modifications and upgrades for recurring and one-time payments with nuanced product configurations.
Mailers - @kit/mailers
This package is responsible for sending emails using a unified interface across the app.
The default mailer uses the nodemailer package to send emails. You can create custom mailers by extending the Mailer class.
Make sure the app installs the @kit/mailers package before using it.
{
"name": "my-app",
"dependencies": {
"@kit/mailers": "*"
}
}
Usage
Send an email
import { Mailer } from '@kit/mailers';
const mailer = new Mailer();
mailer.send({
to: '',
from: '',
subject: 'Hello',
text: 'Hello, World!'
});