feat: add age validation in signup and update payment verification logic
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 5m17s

This commit is contained in:
2025-04-20 12:36:24 +05:00
parent f7122cb252
commit 0c093f1303
5 changed files with 31 additions and 193 deletions

View File

@ -1,5 +1,5 @@
"use client";
import { processWalletPayment } from "@/actions/payment";
import { verifyPayment } from "@/actions/payment";
import {
Table,
TableBody,
@ -84,9 +84,9 @@ export default function DevicesToPay({
disabled={verifying}
onClick={async () => {
setVerifying(true);
await processWalletPayment({
amount: payment?.amount ?? 0,
payment: payment,
await verifyPayment({
method: "WALLET",
id: payment?.id ?? "",
});
setVerifying(false);
}}