About TrustPay AI
💡 Inspiration
Online payments have become a part of everyday life, but paying an unfamiliar seller, freelancer, or online business can still involve uncertainty. Before making a payment, users often struggle to identify warning signs or determine whether they have enough information to proceed.
We were inspired to build TrustPay AI to address this problem. Our idea was to create an AI-powered assistant that helps users understand potential transaction risks before sending money, rather than simply reacting after something goes wrong.
🚀 What We Built
TrustPay AI is an AI-powered payment risk assessment assistant that combines Gemini AI with rule-based analysis.
Users can enter seller and transaction details to receive an indicative risk score, explanations of potential warning signs, and recommendations that help them make more informed decisions.
Key features include:
- AI Risk Assessment: Uses Gemini AI and rule-based checks to identify potential transaction risks.
- Risk Explanations: Highlights factors contributing to a transaction's risk level.
- Actionable Recommendations: Helps users identify missing information and potential warning signs.
- PayPal Integration: Supports payment checkout through the PayPal Developer Sandbox.
- Dashboard: Provides an overview of transaction activity and risk assessments.
- Transaction History: Allows users to review previous assessments and transactions.
🛠️ How We Built It
We developed TrustPay AI using a full-stack architecture:
- Frontend: React, Vite, and Tailwind CSS.
- Backend: Node.js and Express.js.
- Authentication: JWT and bcrypt.
- Database Layer: Mongoose models and a local JSON-based data store in the current prototype.
- AI: Google Gemini API combined with rule-based risk analysis.
- Payments: PayPal Developer Sandbox Orders API v2.
We focused on connecting AI-powered risk analysis with a practical payment workflow so users can evaluate potential risks before proceeding to checkout.
📚 What We Learned
Building TrustPay AI helped us understand how AI can be integrated into real-world financial workflows. We gained practical experience with full-stack development, API integration, authentication, payment processing, and AI-generated explanations.
We also learned that an AI-generated risk score alone is not enough. Users need understandable explanations, transparency about missing information, and recommendations they can act upon.
⚡ Challenges We Faced
One of our biggest challenges was combining multiple technologies into a single workflow.
- Integrating Gemini AI while maintaining a rule-based fallback for situations where AI analysis is unavailable.
- Designing a risk scoring approach that produces understandable explanations rather than unexplained numbers.
- Implementing PayPal Sandbox order creation and payment capture.
- Managing authentication and protecting sensitive configuration.
- Designing a simple interface for presenting complex risk information.
We are continuing to validate the database persistence, AI integration, and complete PayPal Sandbox payment journey.
🎯 Our Vision
Our goal is to make online payments more informed and transparent. TrustPay AI does not guarantee fraud prevention or verify sellers. Instead, it helps users recognize potential warning signs and make better-informed payment decisions.
TrustPay AI — Don't just pay. Understand the risk before you pay.
Built With
- artificial-intelligence
- authentication
- bcrypt
- css
- express.js
- fintech
- fraud-detection
- full-stack-development
- generative-ai
- google-gemini
- html
- javascript
- jwt
- mongoose
- node.js
- payment-processing
- paypal
- react
- rest-api
- risk-assessment
- tailwind-css
- vite