-
-
Create a business profile with category, location, services and target audience to discover relevant collaboration opportunities.
-
AI-powered matching connects businesses with compatible local partners to unlock collaboration and mutual growth.
-
Customize collaboration terms, customer discounts, referral rewards and campaign goals with AI assistance.
-
Enable both businesses to review, negotiate and mutually approve collaboration agreements.
-
Review and approve partnership proposals with mutually agreed terms and collaboration goals.
-
Customize collaboration terms, customer discounts, referral rewards and campaign goals with AI assistance.
-
Customers discover partner services, access exclusive discounts and purchase through shared collaboration offers.
-
Securely process customer payments through PayPal Sandbox integration.
-
Generate a QR code for customers to conveniently access the PayPal payment flow.
-
Track partnership transactions, referral clicks, revenue, customer conversions and payment performance.
-
AI analyzes partnership performance and recommends whether to continue, optimize or explore new business partnerships.
Inspiration
Small shops grow fastest when they send customers to each other: a photographer and an event planner, a florist and a bakery. It almost never happens, for three reasons. Owners don't know who to approach, nobody trusts the numbers ("did that customer really come from you?"), and splitting the money by hand is awkward. for example a shop you know that tried and gave up.]
PartnerLift turns that whole process into one flow: find the right partner, agree on terms, track every referred customer, and let PayPal move the money.
What it does Profile and AI matching. A merchant describes their business. PartnerLift ranks complementary shops with a transparent score and explains each match with AI (gains, risks, what to offer). Plan a collaboration. Cross-referral, bundled offer, or co-marketing, with discount, referral reward, attribution window and a goal. AI can draft the message to the partner. Both partners approve. Nothing goes live until the other shop accepts. Merchants always decide, the AI only advises. Tracked link and QR code. Each shop gets its own link. Clicks are counted, and the customer lands on a joint offer page. Real PayPal checkout. The customer scans a QR code that holds a PayPal approval link, pays with a sandbox buyer account, and the server captures the payment. The referring shop is stored in the order itself. Automatic split. The app calculates each shop's share after the discount and reward. If Payouts is enabled, both partners are paid their share. Results and advice. Live numbers per partner (clicks, payments, revenue from the partner's customers, rewards), a verdict against the agreed goal, and AI advice: continue, adjust the offer, or find another partner. Learning loop. Real results feed back into future match scores. How we built it Zero-dependency Node.js server (server.js, no npm packages) and a single-page front end in plain HTML, CSS and JavaScript. PayPal APIs (sandbox): OAuth token, Orders v2 create and capture, the approval-link QR, attribution through custom_id, Payouts to both partners, and Transaction Search to reconcile saved orders against what PayPal reports. One shared money module (split.js) is used by both the browser preview and the server, so the number a customer sees in the preview is exactly the number the real order uses. All money is handled in cents. Pluggable AI. The server exposes one /api/ai endpoint and can use Claude, Gemini (free tier), or any OpenAI-compatible model (Groq, OpenRouter, Ollama) by changing one setting. The AI is only called from the server, so keys never reach the browser. Prompts with guardrails. Every prompt passes the app's own numbers and tells the model not to invent data and to separate what happened from what it predicts. The match score is a formula, not a black box
The AI explains the score but never sets it:
$$\text{score} = 100\,(0.45\,C + 0.25\,A + 0.15\,G + 0.15\,F) + L$$
where ( C ) is complementarity of the two categories, ( A ) audience overlap, ( G ) geography, ( F ) format fit (openness to the same partnership type), and the learning term ( L = \operatorname{clamp}\big(16,(p - 0.5),,-8,,8\big) ) comes from ( p ), the partnership's progress toward its goal. The score is capped to the range 0 to 99.
The split
For a referral deal with discount ( d ) and reward rate ( r ), the referred shop's sale is ( s ), and
$$\text{reward} = r \cdot \big(s - d\cdot s\big)$$
is moved from the shop that made the sale to the shop that sent the customer. Bundled offers apply the discount only when the cart contains items from both shops, and co-marketing splits the promo cost 50/50.
Challenges we ran into Money truth. The customer pays one PayPal account, but two shops should be paid. We used Payouts for the sandbox demo and documented that production would use PayPal Commerce Platform (multiparty payments). Making the preview match reality. Rounding differences between the browser and server would erode trust, so the split logic lives in one shared file. Proving payments are real. Our own saved history is not enough, so we added a sync with PayPal Transaction Search, which also shows when sandbox data lags. Keeping AI honest and affordable. Free AI tiers have request limits and model names change, so we made the provider switchable and kept a rule-based text as a fallback if the AI fails. AI answers vanishing. The results page refreshes itself, which wiped AI answers drawn on screen. We moved them into saved state so they stay visible. Currency. Amounts are entered in rupees and converted to USD for the sandbox. Accomplishments we're proud of A full loop that works end to end: match, agree, track, pay, split, learn. A real PayPal sandbox payment triggered from a QR code on a phone, with attribution stored in the order. AI that advises from real numbers and is clearly separated from the scoring formula. A collaboration-themed interface: each partner appears as a shopfront joined by bunting, and a successful payment celebrates. What we learned Trust is the product: partners adopt a referral deal when both can verify the same numbers. Putting the AI behind a thin server endpoint made it easy to swap models and keep secrets safe. Small details in payment flows (cents, attribution, reconciliation) matter more than the interface. What's next for PartnerLift PayPal Commerce Platform so each shop receives its own money directly. Webhooks with signature verification and a real database instead of a JSON file. Payouts of referral rewards after the attribution window and fraud check. Matching against real merchant data with consent, instead of 10 sample merchants.
Honest scope: the matching uses 10 sample merchants, and the project runs on the PayPal sandbox with simulated data. Payments, QR approval, capture, attribution and reconciliation are real sandbox calls.