Commit Graph

4 Commits

Author SHA1 Message Date
faisolavolut 30a93df340 feat: add JWT authentication and signature verification for payment APIs
Deploy Application / deploy (push) Failing after 34s Details
- Added JWT_SECRET to docker-compose for JWT signing.
- Updated package.json and package-lock.json to include jsonwebtoken and its types.
- Implemented JWT creation and verification functions in auth middleware.
- Enhanced payment middleware to validate JWT and traditional tokens.
- Introduced signatureTransaction and signatureAuth endpoints in paymentVAController.
- Added signature verification logic in paymentAuth middleware.
- Created verifySignatureV2 function for signature validation using public keys.
- Updated routes to include new payment-related endpoints.
2025-11-10 23:22:41 +07:00
exzork 47f1416193 update compose
Deploy Application / deploy (push) Successful in 20s Details
2025-10-29 15:07:59 +07:00
faisolavolut 85ff2f00a9 feat: Enhance generateSignatureService to log activity for signature generation and update status
Deploy Application / deploy (push) Successful in 30s Details
2025-10-29 08:53:28 +07:00
faisolavolut 7feaeff415 feat: Implement Mandiri payment processing and signature verification
- Added postPayment.ts for handling Mandiri payment requests.
- Introduced stringifyMandiri.ts for stable stringification and hashing of request data.
- Created verifySignature.ts to validate signatures for transactions and general requests.
- Implemented dbPools.ts and dbQueryClient.ts for efficient database connection pooling and querying.
- Added formatTimestamp.ts for consistent timestamp formatting.
- Developed gate.ts and gateClient.ts for dynamic handler invocation based on client actions.
- Introduced getCBPartnerVA.ts for fetching business partner details from the database.
- Re-exported lodash as a shorthand for easier usage across the project.
- Created signature.ts for HMAC and RSA signature verification utilities.
- Added middleware for authentication and virtual account verification (vaAuth.ts).
- Set up Prisma client in prisma.ts for database interactions.
- Established routes in index.ts for various API endpoints including authentication, file uploads, and Mandiri payment processing.
- Defined custom request and response types in index.ts for better type safety.
- Configured TypeScript settings in tsconfig.json for improved development experience.
- Added various binary files for report templates and certificates in uploads directory.
2025-10-21 12:03:13 +07:00