Inspiration
Most online purchases end with a familiar message: Payment completed. The transaction succeeds, but the moment is quickly forgotten.
What if a successful payment could become the beginning of something memorable?
That question inspired Delight AI — a post-purchase experience that transforms one verified PayPal payment into one personalized AI-generated gift.
The next big innovation in payments might be a very small one.
What it does
Delight AI connects payment verification with personalized AI creativity.
Our working demo uses Museum Puzzles, an art-inspired online store featuring three puzzles based on paintings by Vincent van Gogh, Katsushika Hokusai, and Claude Monet.
The experience is simple:
- A customer chooses a puzzle and completes checkout using PayPal Sandbox.
- Our backend captures and verifies the PayPal payment.
- One confirmed purchase unlocks one personalized AI gift.
- The customer chooses a Caricature, Greeting Card, or Mini Comic.
- AI generates the artwork, which is saved and available for download as a PNG.
The customer can personalize the gift with names, messages, creative instructions, or an optional photo where supported.
One verified payment. One personal gift. No unlimited regeneration.
How we built it
The frontend uses Vue 3, Vite, and TypeScript. The backend uses Node.js, Fastify, TypeScript, and SQLite.
PayPal JavaScript SDK and Orders API v2 power Sandbox checkout, server-side order creation, payment capture, and verification. A checkout click alone never grants a gift.
For image generation, we integrated Cloudflare Workers AI, using FLUX.2 Klein 4B as the primary model and Leonardo Phoenix 1.0 as a fallback for supported Mini Comic failures.
Sharp handles image composition and downloadable PNG output.
The application also includes gift entitlement tracking, generation limits, failure recovery, an AI Test Studio, and English/German localization.
The demo runs on a Hetzner server with HTTPS.
Challenges we ran into
The hardest part was connecting two very different processes: reliable financial transactions and unpredictable AI generation.
Payment verification must be deterministic. AI generation can be slow, fail unexpectedly, or trigger provider-side content filters.
We built explicit generation states, preserved customers' gift rights when generation failed, and implemented a controlled fallback model for compatible requests.
Another challenge was preventing repeated gift claims while keeping the customer experience simple.
What we learned
We learned that meaningful PayPal and AI integration does not have to mean building another shopping assistant or automating another transaction.
Sometimes the opportunity lies in what happens after the payment.
A verified transaction can become the trigger for a personal, creative experience that ordinary checkout systems do not provide.
What's next
Our hypothesis is that a small positive surprise after payment could increase customer satisfaction and potentially encourage customers to choose PayPal again.
This is a hypothesis, not a proven business result.
The next step would be a merchant pilot measuring customer engagement, satisfaction, and payment preference against a standard checkout experience.
Delight AI could become an optional post-purchase feature for independent online stores, with customizable creative themes and controlled AI budgets.
Try it
Live demo: https://shop.museumpuzzles.com/
Backup: https://91-99-101-189.sslip.io/
The application uses PayPal Sandbox. No real payments or physical product shipments take place.
We are not reinventing checkout. We are making the moment after checkout worth remembering.
Built With
- ai
- api
- cloudflare
- fastify
- flux
- leonardo
- node.js
- orders
- paypal
- phoenix
- sharp
- sqlite
- typescript
- vue.js
- workers