All articles

How money moves

In progress

Charges, payments, Stripe, and the rule that stops a duplicate webhook charging a family twice.

In progress. Part of this works today. The article says which part.

Written for Club staff

The shape of it

A household has a billing account. Charges are posted to it — a membership fee, a meet fee, a guest pass. Payments are recorded against it. The balance is the difference, and it is one number that every screen reads.

There is no second ledger. The treasurer's statement, the family's balance card and the front desk's verdict are the same number.

Card payments

Card payments run through Stripe. SwimWin does not hold your club's money and does not touch a card number — the card details go to Stripe, and SwimWin records what Stripe says happened.

A family's Pay now sends them to Stripe's own payment page. SwimWin writes a "waiting" payment first, and books it only when Stripe confirms — so the page they return to says "waiting for confirmation" rather than guessing. A saved card is collected by Stripe's form, and SwimWin keeps the brand, the last four digits and the expiry. A bank account (US ACH) can be saved the same way: Stripe verifies it instantly with the family's bank, and the authorization the family accepted is kept with it.

A Checkout page lives for an hour. A family who opens it and walks away leaves a "waiting" payment behind that never touched their balance; a daily sweep marks it canceled once Stripe confirms the page expired, and Pay now always opens a fresh page rather than the dead one.

Booked once, even when Stripe says it twice

Payment processors deliver the same event more than once. That is normal, it is documented behavior, and a system that does not plan for it charges a family twice and produces a treasurer's report nobody trusts again.

SwimWin books a Stripe event exactly once. A repeated delivery of an event that has already been recorded is recognized and discarded rather than posted again.

Offline payments

Cash and checks are first-class, not a workaround. Record a payment on the family's statement and the balance, the statement and the gate verdict all update together. The payment names the staff member who took it, a check carries its check number, and Desk takings lists each day's desk money by who took it, with cash and checks apart, so the drawer can be reconciled. A double press records one payment, for the same reason a repeated Stripe event books once.

Monthly billing

A training group or a class can bill monthly. In Setup, open the group (or a class's roster) and choose Bill monthly: the amount, and the day of the month it is billed, the 1st to the 28th. Every day SwimWin posts that month's charge to each swimmer with an active place in the group (or a confirmed seat in the class), once. Running it again, or twice at the same moment, cannot charge a family twice: the database refuses a second charge for the same swimmer and month. A swimmer who joins partway through a month pays for the days left, and the arithmetic is kept with the charge. A swimmer who is withdrawn is not billed again.

Monthly billing replaces the group's season fee (or the class price) unless Also charge the season fee is on, in which case families pay both: a registration fee and then monthly dues. Pausing bills nobody; ending gives the group its one-time fee back. Families see the next monthly charge under Coming up on their balance card before it lands.

Autopay

A family can turn on autopay under their saved cards and bank accounts, and choose which one it charges. With autopay on, each monthly charge and each payment plan installment is charged to that card or bank account on its due date, without the family being there. SwimWin never charges more than the family owes: someone who paid at the desk that morning is charged nothing.

Each attempt is recorded before the card is charged, under a key the database refuses to see twice, so a rerun, a retry or two servers at once never charge a family twice. If the card is declined, or the bank asks the family to confirm the payment, nothing is taken: the family is emailed (and texted, if they prefer texts) the amount, what it was for and the bank's reason, with a signed link to update the card or pay now, and their balance card says the same.

Declined payments and retries

What happens next depends on why the bank said no:

  • A soft decline (not enough funds, a processing error, a generic decline) is tried again on the club's retry schedule: by default 3, 5 and 7 days after the decline. Each retry is its own attempt with its own key, never more than the family owes, and none is made once the family has paid, turned autopay off, or the charge is gone.
  • A hard decline (the card is reported lost or stolen, do_not_honor, a closed bank account) is never retried. The card is marked failed and autopay stops using it until the family adds another, which then takes autopay over.
  • The bank wants the family to confirm it (3-D Secure): no retry; the family pays with Pay now.

Treasurers are emailed "A payment failed" and "An account went on hold" (each can be turned off in Settings → Staff notices). Billing alerts lists every live hold and every failed payment of the last 30 days with its next retry, and holds the club's retry schedule.

Account holds

When the last retry fails, the account goes on billing hold. A club can also hold an account whose oldest unpaid charge is more than a set number of days past due (off by default). On hold, the family cannot register or add anything to a cart, and the gate and desk show a yellow note (red at meet entry and for charges to the account). The kiosk never shows an amount or a reason. The hold lifts by itself when the balance is paid; a treasurer can lift it sooner from Billing alerts or the family's statement, with a note. Lifting is audited, and nobody can lift a hold on their own family's account.

If autopay is on and the family's only card is removed, declined or expired, the account shows Autopay has no payment method: a yellow note at the gate, and a red one at meet entry, where entry fees are paid out and cannot be returned. The family fixes it by adding a card or turning autopay off.

Payment plans

A treasurer can split charges into installments from the family's statement: Split into installments, choose the charges, how many payments and when the first is due. The installments are equal, a month apart, and add up exactly to what is owed (any leftover cent goes on the first). The charges stay as they are and the balance does not change; the plan only says when the family will pay. On autopay each installment is charged on its date; otherwise the family pays each one with Pay on their balance card. A charge can be on one plan at a time. Cancel plan keeps what was paid and frees the charges for a new plan.

A club can also let families make their own plan, 2 to 6 monthly payments with the first within a month (ask SwimWin support to turn this on).

Refunds

Refund sits on each payment line of a family's statement under Dues. It sends all or part of that payment back to where it came from:

  • A card or bank payment goes back through Stripe. The refund shows as on its way until the card network or bank confirms it, then refunded. If a bank refund bounces later, SwimWin says so on the statement and books the money back onto the account, beside the refund rather than instead of it.
  • Cash or a check is handed back at the desk (or you write the family a check, with its number). It is on the ledger at once, under your name.

A payment can never be refunded for more than it brought in; the database refuses it, even if two people press Refund at once. Pressing it twice, or retrying after a dropped connection, refunds once. A refund made directly in Stripe's dashboard is picked up from Stripe and shows on the statement too.

Credits

A credit is money the club owes the family, kept on their account.

  • Issue credit on a statement: a goodwill credit with a reason the family can read. It pays the family's open charges, oldest first; whatever is left waits on the account and pays the next charge posted, by itself.
  • Credit on a charge line pays toward that one charge.
  • Void on a charge line takes the whole charge off. What was still owed on it is settled; anything the family already paid stays as credit.

The statement shows each credit, what it paid, and the credit still left. A credit is a new line on the ledger, never an edit to an old one.

Canceling in time

When a charged private lesson, a class seat or a camp place is canceled in time, the charge comes off by itself:

  • Staff cancels always give the money back: the club canceled.
  • A family cancel gives it back when it is at least the club's notice before the start (24 hours unless your club changes it). Later than that, the charge stays. A lesson paid from a pack keeps the pack's own notice.
  • Credit is the default. Anything the family paid stays on their account for the next charge. A club that would rather send money back can switch this to refund, and the payment that paid the charge is refunded instead.
  • A swimmer who leaves a monthly-billed group or class mid-month gets the unused days of that month back as a credit, worked out the same way joining late is.

Proration

When a charge is calculated from a partial period, the basis is recorded with the charge. The question "why is this $64 and not $80" has an answer stored alongside the number, rather than being reconstructed from memory in October.

What is not built yet

  • Placing a hold by hand. Holds are placed by the billing run; staff can lift them, not place them.
  • An email to the family when a hold is placed. The family page says so, and they have already had an email for each failed attempt.
  • A screen for families to make their own payment plan. The club can allow it, and the API takes it, but the family page shows plans only.
  • Bank accounts that cannot be verified instantly. Stripe's small-deposit verification is not offered yet; such a family can save a card instead.
  • A screen for the cancellation settings. Credit or refund, and the notice for charged lessons and camps, are set through the API or the swimwin CLI for now.
  • Stripe payouts matched to the payments inside them. The finance reports show what came in each day; see Reports.

Related

Ask Guide

Questions about how SwimWin works, answered from these articles. Guide can’t see any club’s or anyone’s records.

Looking for something else?

Search every article, or ask your club — SwimWin support cannot see inside a club’s roster, and your club can.