You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: i18n/en.json
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -228,8 +228,13 @@
228
228
"Infor": "Infor",
229
229
"Payment Summary": "Payment Summary",
230
230
"Bank Name": "Bank Name",
231
+
"Bank Number": "Bank Number",
231
232
"Amount": "Amount",
232
233
"Description": "Description",
234
+
"Discount": "Discount",
235
+
"We have not received your payment yet. Please try again later, or contact support if the issue persists.": "We have not received your payment yet. Please try again later, or contact support if the issue persists.",
233
236
"Please verify the details before proceeding with the payment.": "Please verify the details before proceeding with the payment.",
234
-
"I have transfered the money! (Click here)": "I have transfered the money! (Click here)"
237
+
"Modification of the transaction is prohibited and could potentially lead to account suspension!": "Modification of the transaction is prohibited and could potentially lead to account suspension!",
238
+
"I have transfered the money! (Click here)": "I have transfered the money! (Click here)",
Copy file name to clipboardExpand all lines: i18n/vi.json
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -228,8 +228,13 @@
228
228
"Infor": "Thông tin",
229
229
"Payment Summary": "Thông tin thanh toán",
230
230
"Bank Name": "Ngân hàng",
231
+
"Bank Number": "Số tài khoản",
231
232
"Amount": "Số tiền",
232
233
"Description": "Mô tả",
233
-
"Please verify the details before proceeding with the payment.": "Vui lòng xác minh thông tin trước khi tiếp tục thanh toán.",
234
-
"I have transfered the money! (Click here)": "Tôi đã chuyển tiền! (Nhấp vào đây)"
234
+
"Discount": "Giảm giá",
235
+
"We have not received your payment yet. Please try again later, or contact support if the issue persists.": "Chúng tôi chưa nhận được thanh toán của bạn. Vui lòng thử lại trong giây lát, hoặc liên hệ với bộ phận hỗ trợ nếu vấn đề vẫn tiếp diễn.",
236
+
"Please verify the details before proceeding with the payment.": "Vui lòng xác minh các chi tiết trước khi tiếp tục thanh toán.",
237
+
"Modification of the transaction is prohibited and could potentially lead to account suspension!": "Việc sửa đổi nội dung giao dịch bị cấm và có thể dẫn đến việc tạm ngưng tài khoản!",
238
+
"I have transfered the money! (Click here)": "Tôi đã chuyển tiền! (Nhấp vào đây)",
Copy file name to clipboardExpand all lines: server/api/payments/sepay/webhook.post.ts
+33-30Lines changed: 33 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -3,35 +3,21 @@ import { z } from 'zod'
3
3
4
4
exportdefaultdefineEventHandler(async(event)=>{
5
5
try{
6
-
// {
7
-
// gateway: "ACB",
8
-
// transactionDate: "2025-05-23 23:34:40",
9
-
// accountNumber: "17228427",
10
-
// subAccount: null,
11
-
// code: "SPN8NHOSTING123",
12
-
// content: "MBVCB.9604208212.518683.SPN8NHOSTING123.CT tu 0041000331568 NGUYEN HUU NGUYEN Y toi 17228427 NGUYEN HUU NGUYEN Y tai ACB GD 518683-052325 23:34:40",
13
-
// transferType: "in",
14
-
// description: "BankAPINotify MBVCB.9604208212.518683.SPN8NHOSTING123.CT tu 0041000331568 NGUYEN HUU NGUYEN Y toi 17228427 NGUYEN HUU NGUYEN Y tai ACB GD 518683-052325 23:34:40",
15
-
// transferAmount: 2000,
16
-
// referenceCode: "3165",
17
-
// accumulated: 0,
18
-
// id: 13425123,
19
-
// }
20
6
constbody=awaitreadValidatedBody(
21
7
event,
22
8
payload=>z.object({
23
-
accountNumber: z.string(),
24
-
accumulated: z.number(),
25
-
code: z.string(),
26
-
content: z.string(),
27
-
description: z.string(),
28
-
gateway: z.string(),
29
-
id: z.number(),
30
-
referenceCode: z.string(),
31
-
subAccount: z.string().optional().nullable(),
32
-
transactionDate: z.string(),
33
-
transferAmount: z.number(),
34
-
transferType: z.string(),
9
+
accountNumber: z.string(),// e.g., "17228427"
10
+
accumulated: z.number(),// e.g., 0
11
+
code: z.string(),// e.g., "SPN8NHOSTING123"
12
+
content: z.string(),// e.g., "MBVCB.9604208212.518683.SPN8NHOSTING123.CT tu 0041000331568 NGUYEN HUU NGUYEN Y toi 17228427 NGUYEN HUU NGUYEN Y tai ACB GD 518683-052325 23:34:40"
13
+
description: z.string(),// e.g., "BankAPINotify MBVCB.9604208212.518683.SPN8NHOSTING123.CT tu 0041000331568 NGUYEN HUU NGUYEN Y toi 17228427 NGUYEN HUU NGUYEN Y tai ACB GD 518683-052325 23:34:40"
0 commit comments