Inspiration:

Small businesses often struggle with managing invoices, tracking payments, understanding financial activity, and handling repetitive payment-related tasks. Managing these operations across multiple tools can become time-consuming and complicated, especially for businesses without dedicated finance teams.

We wanted to explore a simple question: What if small businesses had an intelligent financial copilot that could help them manage their payment operations instead of simply recording transactions?

That idea led to PayPilot AI — an AI-powered payment operations assistant designed to simplify invoicing, streamline PayPal payments, and make financial information easier to understand.

Our goal was to bring together the reliability of PayPal's payment infrastructure and the intelligence of AI in one unified platform.

What it does

PayPilot AI is designed as an intelligent financial management platform for small businesses.

Its core capabilities include:

  • Smart Invoice Management: Create, organize, manage, and track business invoices.
  • PayPal Payment Integration: Create PayPal orders, initiate checkout, approve payments, and capture transactions through the PayPal Sandbox integration.
  • Payment Tracking: View payment records and their associated invoice information.
  • AI-Powered Financial Assistance: Help business owners understand payment activity, interpret financial information, and gain actionable insights.
  • Intelligent Financial Insights: Work toward identifying unusual payment patterns and highlighting important business trends.

Rather than treating payments and invoices as separate activities, PayPilot AI aims to connect the entire workflow.

How we built it

We built PayPilot AI using a modern full-stack architecture.

Frontend:

  • React.js
  • TypeScript
  • Vite

Backend:

  • Node.js
  • Express.js
  • REST APIs

Database:

  • PostgreSQL

Payment Technology:

  • PayPal REST API
  • PayPal Sandbox
  • Server-side OAuth 2.0 authentication
  • PayPal Orders and Capture APIs

AI and supporting technologies:

  • Large Language Models (LLMs)
  • Ollama-based local AI integration
  • AI-assisted financial analysis and explanations

The frontend communicates with the backend through REST APIs, while PostgreSQL manages application data.

For payment processing, we designed a server-authoritative workflow. The backend determines invoice amounts and currencies, creates PayPal orders, handles payment capture, and verifies transaction results before persisting payment records.

We also incorporated safeguards such as request idempotency, transactional persistence, and payment reconciliation to make the payment workflow more reliable.

The AI component is intended to complement this infrastructure by making financial information more accessible and useful to small-business owners.

Challenges we ran into

Building a platform that combines financial workflows, payment processing, and AI introduced several engineering challenges.

  • Payment security: Ensuring that payment amounts are determined by the backend rather than trusting client-side values.
  • PayPal integration: Understanding the OAuth authentication flow, order creation, approval, capture, and verification lifecycle.
  • Data consistency: Making sure invoices and payment records remain synchronized, even when a payment request is retried.
  • Idempotency: Preventing duplicate payment captures and handling repeated requests safely.
  • Full-stack integration: Connecting the React frontend, Express backend, and PostgreSQL database without disrupting existing application functionality.
  • AI integration: Designing an AI layer that provides genuinely useful financial assistance rather than simply adding a chatbot to a payment dashboard.

These challenges pushed us to think beyond the visible interface and focus on the reliability and correctness of the underlying system.

Accomplishments that we're proud of

Some of the milestones we are proud of include:

  • Building a full-stack application with React, TypeScript, Node.js, and PostgreSQL.
  • Implementing authentication and invoice management.
  • Integrating the backend payment workflow with PayPal's order and capture architecture.
  • Developing a payment interface that supports invoice selection, checkout approval, capture, cancellation, and retry handling.
  • Introducing server-side payment verification and idempotency safeguards.
  • Establishing automated frontend and backend tests to validate important application workflows.

Most importantly, we are proud of approaching this as a practical business problem and building the foundations of a solution that combines payment infrastructure with intelligent assistance.

What we learned

This project taught us that building a payment application involves much more than connecting an API and displaying a successful transaction.

We learned about PayPal's payment lifecycle, secure backend communication, OAuth authentication, database transactions, API integration, and the importance of handling failures and duplicate requests.

We also learned how important it is to design AI around actual user needs. AI should help users make sense of information and reduce repetitive work, rather than exist simply as a feature label.

Working through these challenges strengthened our understanding of full-stack development, financial technology, and responsible AI integration.

What's next for PayPilot AI

PayPilot AI is an evolving project, and we see several opportunities to take it further.

Our next goals include:

  • Completing and validating the end-to-end PayPal Sandbox payment experience.
  • Expanding AI-powered invoice understanding and financial assistance.
  • Introducing intelligent transaction explanations and anomaly detection.
  • Building more detailed financial analytics and business reports.
  • Improving the overall user experience and making the platform accessible to non-technical business owners.
  • Exploring additional automation opportunities for everyday financial operations.

Our vision is simple: make payment management smarter, simpler, and more accessible for every small business.

PayPilot AI — Your AI-powered business finance copilot.

Built With

Share this project:

Updates

Submission history