payment | webhook

This commit is contained in:
Tria
2026-06-05 17:34:33 +03:00
parent 6786bdd210
commit ebe59f491a
3 changed files with 17 additions and 225 deletions

View File

@@ -65,24 +65,24 @@ export class PaymentController {
}
@Get("test")
handleTest(@Res() res: Response) {
// @Get("test")
// handleTest(@Res() res: Response) {
const filePath = path.join(__dirname, "templates", "payment.hbs");
console.log(filePath)
console.log(__dirname)
if (fs.existsSync(filePath)) {
const source = fs.readFileSync(filePath, "utf8");
const template = Handlebars.compile(source);
// const filePath = path.join(__dirname, "templates", "payment.hbs");
// console.log(filePath)
// console.log(__dirname)
// if (fs.existsSync(filePath)) {
// const source = fs.readFileSync(filePath, "utf8");
// const template = Handlebars.compile(source);
const html = template({
url: "https://example.com"
});
// const html = template({
// url: "https://example.com"
// });
res.send(html)
}
}
// res.send(html)
// }
// }