Skip to content

Payment Integrations

The portfolio's payment story: Stripe everywhere, and a unified payment-gateway service that fronts five processors in the apps that need per-tenant routing. Fourteen apps ship all five gateway implementations even if only one is the default; the rest are Stripe-only. Jarvis has no payment code. Two products add non-custodial crypto (BidIt, GGPI website).

Portfolio default: the five gateways

Gateway App count Default for
Stripe 25 (every product except Jarvis) Subscriptions, modern checkout flows
PayPal 16 (the 14 five-gateway apps + BidIt + Do Me A Ditty) Consumer fallback
Braintree 14 (five-gateway apps) Enterprise / legacy merchants
Square 14 (five-gateway apps) In-person + online retail
Authorize.net 14 (five-gateway apps) Legacy enterprise

Apps that ship the full five-gateway set (14): Sourcing AI, AutoDiag AI, Tutor AI, AI Concierge, SmartForms, Sell Me A Pen, APEX Sales Training, Recruiting AI, PoligoPro, VotigoPro, HouseKey, Maximus Pet Store, Pecos River Traders, GGPI website.

Stripe plus extras: BidIt (Stripe + PayPal Orders v2 + non-custodial crypto), Do Me A Ditty (Stripe + PayPal checkout, Venmo through PayPal).

Stripe only: Toolbelt Handyman, SuperCabs, Workflow Hub, DOC-AI, Marketing AI, GoGreen Verify, GameTrakker, Go Green Transit, GoGreen Seller AI, OpenSentinel (Stripe adapter).

Configured vs. coded. Code-complete does not mean live. On the GGPI website only Stripe and PayPal (sandbox) have real credentials — Stripe has been LIVE since 2026-11-12 on the site's own account (restricted key); DocGen AI and Go Green Verify have billed in live mode on one separate shared account since 2026-11-04; Braintree, Square and Authorize.net are coded but not configured. Workflow Hub has a gateway service for the other four processors that is not wired — only Stripe is live in its billing routes (it also has adapters for all five for workflow actions).


Stripe

What it is. Card processing + billing engine. Subscriptions, checkout sessions, customer portal, invoices, tax (Stripe Tax), payment links, Apple Pay / Google Pay through one SDK. Webhooks for every state change.

Why it's the default. Best DX, best docs, fastest integration. Recurring billing is solved out of the box.

SDK: stripe (Node, versions ^14 to ^21 across apps; ^17.7 in Tutor AI), stripe-php ^19.1 (VotigoPro, Maximus Pet Store and Pecos River Traders storefronts; ^16 in their APIs), stripe (Python — DOC-AI, SmartForms, AutoDiag AI).

Common patterns: - Checkout Sessions — for one-shot purchases. Stripe-hosted. Toolbelt Handyman sends Stripe Checkout pay links (direct mode); Go Green Transit builds checkout with inline price_data for its $99 desktop license and tiers. - Subscriptions — GameTrakker (organization subscriptions with trial codes), Workflow Hub (live in routes/billing.ts), GGPI website (webhook handles customer.subscription.created/updated/deleted). The webhook drives the local plan / tier column. - Usage metering — DOC-AI (metering / overage). - Statements — SuperCabs runs monthly B2B statements. - Webhooks — billing apps verify Stripe-Signature; the GGPI website rejects unsigned events in production (webhook secret set 2026-07-27, created in test mode; the live-mode endpoint is not confirmed). - Stripe Connect / Tax — BidIt's CLAUDE.md cites Connect, Tax and Billing for seller payouts (3-day payout hold, $500 escrow threshold, seller absorbs Stripe fees). No other app uses Connect.


PayPal

What it is. The original online wallet. Consumers without a card on file, international payments, recurring billing.

SDK: @paypal/checkout-server-sdk (Node, deprecated but still in use — GGPI website), paypalrestsdk (Python — AutoDiag AI), srmklive/paypal (PHP — VotigoPro). BidIt uses PayPal Orders v2.

Used in: BidIt and the 14 five-gateway apps (Tutor AI via @paypal/checkout-server-sdk; Pecos River Traders via paypal/paypal-checkout-sdk; Maximus Pet Store has a PayPalGateway class but no PayPal package in composer.json). PayPal is the "secondary checkbox" in Stripe-first apps. GGPI website runs it in sandbox mode with validated credentials.

Tradeoffs. SDK quality lags Stripe. Webhooks less reliable historically. Buyer protection rules can claw back funds.


Braintree

What it is. PayPal-owned full-stack gateway. Cards + PayPal + Venmo + Apple/Google Pay through one tokenizer. Used by larger merchants for the unified vault.

SDK: braintree (Node ^3.35 in GGPI website, Tutor AI, Sell Me A Pen, HouseKey; ^6 in VotigoPro, Maximus Pet Store and Pecos River Traders; Python in AutoDiag AI).

Used in: the 14 five-gateway apps (code-complete). Not configured on the GGPI website (needs a Braintree sandbox account).


Square

What it is. Originally in-person card readers; now online + in-store unified. Strong at retail / restaurants / appointment-booking businesses.

SDK: squareup (Python — AutoDiag AI), square (Node — ^38 in GGPI website, Tutor AI, Sell Me A Pen, AI Concierge, HouseKey, Maximus Pet Store, Pecos River Traders; ^35 in VotigoPro).

Used in: the 14 five-gateway apps (code-complete). Not configured on the GGPI website.


Authorize.net

What it is. Visa-owned legacy gateway, very common with older B2B merchants and traditional retail. ARB for recurring billing.

SDK: authorizenet ^1.0.10 in Node (GGPI website, Tutor AI, HouseKey), Python SDK / REST in AutoDiag AI and SmartForms; the Maximus Pet Store and Pecos River Traders APIs (Composer package ^2).

Why it's still on the list. Customers who've used Auth.net for 15 years aren't switching.

Used in: the 14 five-gateway apps (code-complete). Not configured on the GGPI website.


The unified payment-gateway service pattern

What it is. Each five-gateway app exports a single payment-gateway service (name varies) that hides the concrete gateway behind methods like:

service.createCheckout({ amount, currency, customer })
service.createSubscription({ planId, customer })
service.refund({ chargeId, amount })
service.handleWebhook(req)

The active gateway is chosen by per-tenant config — tenant A gets Stripe, tenant B gets Authorize.net, the calling code doesn't change.

Where it lives: Sourcing AI (src/lib/payment-gateway.ts), AutoDiag AI (src/services/payment_gateways.py), AI Concierge (services/payment/payment-gateway.ts), Sell Me A Pen (src/services/payment-gateways.ts), PoligoPro and GGPI website (services/payments/, one service file per gateway), Tutor AI (services/billing/*.gateway.ts, one file per gateway; Pro/Family/School plans), VotigoPro (PaymentManager + five gateway classes with verifyWebhook()), Maximus Pet Store and Pecos River Traders (PaymentGatewayInterface / PaymentManager + five gateway classes in the API), SmartForms (Python SDKs). Workflow Hub has the same shape in payment-gateway.service.ts, but it is unwired.


Webhook conventions

Every gateway integration: 1. Exposes a webhook POST endpoint per gateway. 2. Verifies the gateway-specific signature header before parsing (raw body kept for signature checks — Go Green Transit, GameTrakker). 3. Routes the event to a typed handler (onSubscriptionUpdated, onChargeRefunded, ...). 4. Is safe to retry; handlers key off the event.


Cryptocurrency / Web3

Two products accept on-chain payments, both non-custodial (they derive deposit addresses from an extended public key, so the server cannot spend):

  • GGPI website — USDC on Base. Account-level xpub derives a per-invoice address; a 60-second sweep job watches the chain (ethers ^6.17). Public pay link /api/public/pay/:token with an EIP-681 URI; payout queue with on-chain verification. Live-verified on Base Sepolia 2026-07-21; enabled only when the CRYPTO_XPUB / CRYPTO_CHAIN secrets are set.
  • BidIt — Bitcoin (bitcoinjs-lib, BIP32) plus EVM ETH / USDC / USDT on Ethereum, Base, Polygon, Arbitrum and Optimism, admin-toggleable (ethers ^6.16 on the server; wagmi / viem + WalletConnect on the web).

See Integrations-Web3.md. Crypto sits beside the fiat gateways, not inside the unified gateway service.


Comparison alternatives (not used)

Gateway Notes
Adyen Enterprise-grade, multi-region. No portfolio app at that scale.
Klarna / Affirm BNPL. Not in any flow.
Mollie / Razorpay / Paystack Region-specific. No app targets those regions.
Lemon Squeezy / Paddle Merchant-of-Record (handles VAT/sales tax). Useful for SaaS — not used here; BidIt uses Stripe Tax.
Crypto-fiat (Coinbase Commerce, BitPay) Not used. Crypto is handled on-chain directly (xpub address derivation).

Decision guide

Stripe is fine?                       Stripe.
Customer requires a different gateway?  Use the unified service to switch.
Need BNPL?                            Add Klarna/Affirm via Stripe (Stripe supports these).
Tenant on Square POS?                 Square (already fits their flow).
Pre-2020 enterprise customer?         Authorize.net.
On-chain payments?                    See Integrations-Web3.md (non-custodial xpub pattern).