Inspiration

Small business owners often write quotes by hand in WhatsApp and then chase payment separately. I wanted one flow where you describe the job in plain English, get a professional quote, and let the client pay straight away.

What it does

QuickPal turns a request like "quote for Ada, 2 cakes at 8000 naira each" into a structured quotation. An AI agent extracts the client name, service, quantity and price, fills in the form, and generates a WhatsApp-ready message with the total. The client can then pay through PayPal Checkout from the same page.

How it uses PayPal

  • The server gets an access token from the PayPal sandbox using the Client ID and Secret.
  • The server creates a PayPal order from the quote details through the Orders API.
  • The PayPal JavaScript SDK shows the checkout button in the browser.
  • After the buyer approves, the server captures the payment, and the app shows the amount and transaction ID.
  • Naira prices are converted to USD with a fixed demo rate.

How it uses AI

The server sends the user's request to OpenRouter (the free openrouter/free model router), which returns the quote details as JSON. The app uses that JSON to fill in the form. API keys stay on the server and never reach the browser.

How I built it

Node.js and Express for the backend, plain HTML, Tailwind CSS and JavaScript for the frontend, the PayPal Orders API and JavaScript SDK for payments (sandbox), and OpenRouter for the AI agent.

Challenges I ran into

This is my first payment integration, and I'm still learning to code. I had to learn to keep secret keys out of frontend code by moving the AI call and the PayPal order creation to a backend. I also hit a sandbox payment error at the final "Pay Now" step, which went away after I created a US sandbox business account and a new app linked to it.

What I learned

How OAuth tokens, the Orders API create and capture flow, and environment variables work, and why API keys should never be hardcoded into a web page.

What's next

Live exchange rates, sending the quote directly on WhatsApp, saving quotes and invoices, and a payment option for local naira clients.

Built With

Share this project:

Updates

Submission history