BixPay card integration, phase 1 (Marty approved the copy 2026-10-29; docs/BIXPAY-INTEGRATION.md): gated by site config bixpayLive (off by default). Profile > BixPay card field (partner link validated: bix.ibportal.io/auth/register, e= token, a=1; the appId=3 card-customer link is refused with a message), bixpay.js resolver own > sponsor chain (10 levels) > company link (bixCompanyLink, seeded with Marty's partner link), every surface says whose link it is. Wallet tab card, one-week Overview announcement (24 h snooze), one sentence in TierPaid payout emails and the games' wallet nudges, Promo tools > BixPay tab (3 posts, email swipe, 4 text-only banners on the Spaces CDN, tracked link + per-member clicks), public guide /bixpay with masked app screenshots, chatbot canned answers + facts gated to 'coming soon' while off (KNOWLEDGE_DATE 2026-10-29). Clicks per surface via /go/bixpay in the admin Traffic tab; admin Overview counts members with a link; member card shows it; signed /api/partner/bixpay and the lssync profile row carry it for LinkSpin/CTB. accounts.bix_partner_link column (db.js alterSafe). Tests: qa/bixpay.test.cjs (17) + walk.mjs BixPay block; my.js/promo.js/admin.js ?v=20261029bx.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,99 @@
|
||||
# BixPay card integration (DRAFT for Marty, 2026-10-29)
|
||||
|
||||
Scope: InstantAdPay first, LinkSpin second, CTB when it launches. Nothing here is built yet.
|
||||
|
||||
## What we know about BIX (verified 2026-10-29)
|
||||
- BIX = self-custody wallet + Visa card spent from USDT/USDC. Funding networks include Polygon, so a member can swap POL
|
||||
to USDT in the BIX app and load the card with no bridge. No load fee; up to 3% per purchase, 1% FX.
|
||||
- Cards: virtual $9.99, plastic $100, metal $250, gold $25,000. US = Visa Signature (29 states); elsewhere Visa Platinum.
|
||||
- Partner plan: 50% of net fees and card sales -> 45% over 10 levels (15 / 10 / 2.5 x 8) + 5% pool.
|
||||
- Partner link format: `https://bix.ibportal.io/auth/register?e=<43-char token>&a=1` (opaque token, not derivable from the
|
||||
IB ID). The referral link (`&appId=3`) makes a card customer only; the PARTNER link makes a partner. We use the partner link.
|
||||
- Company fallback link: Marty's partner link (IB12143793).
|
||||
|
||||
## 1. The profile field (one identity, follows the member)
|
||||
- InstantAdPay Profile tab, new section **"BixPay card"**: one input, `bixPartnerLink`.
|
||||
- Accepts a full partner link. Validation: host `bix.ibportal.io`, path `/auth/register`, `e=` present, `a=1`; strip `appId`
|
||||
if pasted (the customer link) and tell the member "That's the card-customer link. Paste the Partner link from your BIX
|
||||
portal profile instead." Max 300 chars. Saved on the IAP account; LinkSpin and CTB read it through the existing partner
|
||||
API (the same way wallet and sponsor already flow), and LinkSpin's own Profile shows it read-only with "Edit on InstantAdPay".
|
||||
- Member sees under the field: "Where to find it: BIX portal > Profile > Partner (the second box). Copy the link."
|
||||
- Admin: the field shows on the member card; a count of members with a link set on the admin Overview.
|
||||
|
||||
## 2. The link each visitor gets (sponsor follows)
|
||||
`bixLinkFor(member)` =
|
||||
1. the member's own `bixPartnerLink`, else
|
||||
2. walk the sponsor chain up to 10 levels, first sponsor with a link, else
|
||||
3. the company link (site config `bixCompanyLink`, default Marty's partner link).
|
||||
The card promo always shows WHOSE link is in play: "Your link" / "Your sponsor @name's link" / "Network link". That nudges
|
||||
members to add their own, and sponsors to get their teams signed up.
|
||||
For public pages (games' landing pages, /join/<user>), the referrer whose `?ref` is on the page resolves the same way.
|
||||
|
||||
## 3. Where members see it
|
||||
### Wallet tab (primary)
|
||||
Card: **"Spend your POL anywhere with a BixPay Visa card"**
|
||||
"BixPay is a self-custody wallet with a Visa card. Send USDT or USDC to it on Polygon, load the card, and spend it wherever
|
||||
Visa is accepted, including Apple Pay and Google Pay. Virtual cards from $9.99."
|
||||
(No in-app swap: Marty confirmed 2026-10-29 he swaps POL to USDT/USDC on an exchange, then sends it to BixPay. The guide
|
||||
gets a "turn your POL into USDT" step: any exchange or on-ramp, then send on Polygon. Add the swap line only once BIX
|
||||
ships it; the founder said "in the next three months" on 10-17.)
|
||||
Buttons: **Get your BixPay card** (partner link) · **How it works** (opens the guide).
|
||||
Small line: "Using: your link / @sponsor's link / the network link. Add yours in Profile."
|
||||
### Overview
|
||||
A one-line announcement card the first week ("New: a Visa card for your POL"), dismissable like the other cards.
|
||||
### Payout emails + game "link your wallet" nudges
|
||||
One sentence after the amount: "Want to spend it? A BixPay Visa card turns POL into everyday purchases: <link>."
|
||||
(Payout emails already carry the member's identity, so the link resolves per member.)
|
||||
### Promo tools > new tab "BixPay"
|
||||
- The member's link with Copy/Share.
|
||||
- 3 posts (short, friendly, the "spend your crypto" angle), an email swipe, and 4 banners we make (no BIX logo until
|
||||
Marty confirms brand rules; text-only "crypto Visa card" creative is safe).
|
||||
- Every asset carries the member's resolved link.
|
||||
### Guide page /bixpay (public, SEO)
|
||||
What it is, the fee table, the funding path (POL -> USDT on Polygon -> card), the sign-up steps with screenshots, the
|
||||
partner plan in plain words, and the compliance box. CTA carries the viewer's resolved link.
|
||||
### Chatbot
|
||||
Canned answers: what BixPay is, how to get the card, how to load it from POL, where to put my partner link, who gets the
|
||||
credit. Facts in the system prompt with KNOWLEDGE_DATE.
|
||||
|
||||
## 4. Copy (Marty's voice, no em dashes)
|
||||
- Wallet card title: "Spend your POL anywhere with a BixPay Visa card"
|
||||
- Body: see above.
|
||||
- Profile field label: "Your BixPay partner link"
|
||||
- Profile help: "Join BixPay as a partner, then paste your Partner link here. Members and visitors who get a card through
|
||||
your pages are credited to you in your BIX portal, up to ten levels deep."
|
||||
- Email line: "Want to spend it? A BixPay Visa card turns POL into everyday purchases."
|
||||
- Post 1 (short): "I spend my crypto with a Visa card now. BixPay keeps the keys with you, loads from USDT or USDC with no
|
||||
load fee, and works with Apple Pay. Virtual card from $9.99: {L}"
|
||||
- Fees line everywhere: "3% per purchase, no load fee. See BIX's terms for other charges."
|
||||
- US line on the Wallet card and guide: "Available in 31 US states so far. Not in your state yet? You can still get the
|
||||
wallet and build."
|
||||
- Guide: a "Funding your card" section with three paths: (1) swap POL to USDT or USDC on any exchange, send on Polygon;
|
||||
(2) Cash App (US): send crypto straight to the BixPay wallet; (3) the BIX in-app swap, once it ships.
|
||||
- Post 2 (friendly): "Earning crypto is one thing. Spending it without jumping through hoops is another. BixPay fixed that
|
||||
for me: a self-custody wallet and a Visa card in one app. Here's where I got mine: {L}"
|
||||
- Post 3 (partner angle): "BixPay pays partners on every card and on card spending, ten levels deep. If you're building a
|
||||
team anyway, this fits right in: {L}"
|
||||
|
||||
## 5. Compliance box (shown on the Wallet card's "How it works" and the guide)
|
||||
"BixPay is a separate company. BIX issues the wallet and the card through its banking partners and sets its own fees,
|
||||
limits, eligibility and terms. InstantAdPay is not the card issuer and earns a referral commission when you sign up
|
||||
through a partner link. Card availability varies by country. Crypto assets can lose value."
|
||||
|
||||
## 6. Tracking
|
||||
- Click counts per surface (wallet card, email, promo tools, guide) in the admin Traffic tab; per-member click counts on
|
||||
the Promo tools BixPay tab. No sign-up credit on our side: the BIX portal shows each partner their directs and levels.
|
||||
- If BIX ever offers a postback, add a "BixPay sign-ups" stat next to the click counts.
|
||||
|
||||
## 7. Rollout
|
||||
1. IAP: field + resolver + Wallet card + guide + chatbot + promo tab (gated by site config `bixpayLive`).
|
||||
2. LinkSpin: read-only field + Wallet/Credits card + promo entry, same resolver through the partner API.
|
||||
3. CTB: same card and field in ctb-next, same identity.
|
||||
4. Announcement (release note + member email + Telegram) after Marty's copy approval.
|
||||
|
||||
## Open questions for Marty / BIX upline
|
||||
- Does a partner sign-up also get the card, or does the member need the app invitation too? (If both: show "Join as a
|
||||
partner" and "Just want the card?" buttons, each with the member's own link type.)
|
||||
- BIX name/logo use in our promo material.
|
||||
- The pool's "50/50 rule".
|
||||
- Any updated BIX materials.
|
||||
Reference in New Issue
Block a user