◀Check Before You Charge
FLOW Bike4Mind/bike4mind #7231 · ★ 97feat(billing): require and record terms acceptance before credit purchasesA real, public pull request, signed as made with Claude Code. See it on GitHub ↗
IN THE WORLD

Users buying Bike4Mind credits must accept terms before paying when admins require it.

REACH

Bike4Mind is a small, early-stage open-core AI workbench with 97 GitHub stars and 9 GitHub followers, used via self-hosting or its hosted app.

WHAT IT MEANS

When enabled by an admin, buyers see a required Terms of Service checkbox before paying for credit packs or converting an organization, and their acceptance is saved.

  • Bike4Mindmakes it
RED · how I did it
  • GONE Clicking Purchase always goes straight to the payment form, whether terms consent is required or not.
  • Submitting your card details from the payment form completes the purchase.
GREEN · how I do it now
  • NEW Clicking Purchase when terms consent is off goes straight to the payment form.
  • NEW Clicking Purchase when terms consent is required opens a Terms dialog with Continue locked.
  • NEW In the Terms dialog, cancelling returns to the shop; ticking the box and continuing opens the payment form.
  • Submitting your card details from the payment form completes the purchase.

WHERE In the Bike4Mind web app, clicking the Purchase button to buy a package of credits.

SCENE You are topping up your Bike4Mind account with a fresh pack of credits. You pick a package and click Purchase, ready to enter your card details.

Credit shop
You are on the credits page, ready to click Purchase.
Terms popup
The 'Before you buy' dialog is open, with Continue disabled.
Box ticked
You ticked 'I agree to the Terms', unlocking the Continue button.
Card form
The payment request has started and the card modal is open.
Paid
Your payment went through and the credits are yours.
What can happen
Buy (off) · Buy (on) · Tick box · Continue · Cancel · Pay card