PayShield AI – Think Before You Pay
Inspiration
In today's digital world, online payments and subscriptions have become part of our everyday lives. However, before making a payment, people often overlook important details hidden in lengthy terms and conditions. Unexpected recurring charges, automatic renewals, non-refundable payments, cancellation restrictions, and hidden fees can turn an ordinary transaction into an unpleasant experience.
We were inspired by a simple question: What if people could understand the risks and commitments behind a payment before actually making it?
That question led to PayShield AI – a payment intelligence tool designed to help users make more informed decisions before committing their money.
What It Does
PayShield AI analyses payment details and merchant-provided terms and conditions to highlight potential risks and important commitments.
Its key features include:
- Smart Risk Score: Provides a score from 0 to 100 based on detected payment conditions and risk indicators.
- Merchant Terms Scanner: Identifies potentially important clauses related to recurring billing, trial conversions, refunds, cancellations, additional fees, and price changes.
- Explainable AI Alerts: Presents detected concerns with understandable explanations and supporting evidence from the submitted terms.
- Payment History: Allows users to revisit their previous analysis reports.
- Downloadable Reports: Enables users to save their payment analysis as a PDF for future reference.
Rather than simply presenting a warning, PayShield AI aims to explain what was detected, why it matters, and what the user should check before proceeding.
How We Built It
We developed PayShield AI as a web-based application using HTML, CSS, JavaScript, and Python.
- HTML was used to structure the login page, payment input form, live preview, and analysis dashboard.
- CSS was used to create a modern interface with a dark visual theme, interactive elements, and responsive layouts.
- JavaScript handles user interactions, live payment previews, terms scanning, browser-based payment history, and communication with the backend.
- Python powers the backend, validates submitted payment information, detects predefined risk conditions, and coordinates AI-assisted analysis.
- Gemini AI is used to interpret payment terms and generate explanations where the AI service is available.
We also designed the analysis to retain rule-based checks as a fallback, so that basic warning detection can still provide useful information when AI analysis is unavailable.
Challenges We Faced
Building PayShield AI was a valuable learning experience, especially while working with technologies and concepts that were initially unfamiliar.
Some of the major challenges included:
- Understanding the problem: Turning the broad idea of payment safety into a practical application with clearly defined features.
- Backend integration: Connecting the frontend to a Python server and ensuring payment information was transferred and processed correctly.
- AI integration: Handling AI responses, structuring the output, and accounting for situations where the AI service might not respond.
- Risk assessment: Designing meaningful rules to identify potential payment concerns without presenting every unusual condition as proof of fraud.
- User experience: Making the interface understandable and interactive while presenting technical findings in simple language.
- Debugging and testing: Resolving issues with code, server communication, and inconsistent outputs while integrating different parts of the application.
Each challenge helped us understand the importance of testing, debugging, and building software one component at a time.
What We Learned
This project taught us much more than how to build a web application. We gained practical experience in frontend development, backend programming, API integration, AI-assisted analysis, and connecting different technologies into one working system.
We also learned that AI should not simply produce answers; it should help users understand the reasoning behind them. Most importantly, we realised that even a small idea can become meaningful when it addresses a real-world problem.
Our Vision
PayShield AI is built around one simple belief:
People should understand what they are agreeing to before they pay for it.
Our goal is to make digital payments more transparent by helping users recognise important terms, understand potential commitments, and make more informed decisions.
PayShield AI does not process payments or guarantee that a transaction is safe. Instead, it acts as an additional layer of awareness between a user and a payment decision.
Think Before You Pay. Stay Informed. Stay in Control.