This page won't be able to charge anyone until you finish these steps in your PayPal Business account. Do this once — takes about 10 minutes. Parents don't see this panel; it's just for you.
0. Generate a player code once a player is placed on a team
- After a player has attended a few training sessions and the head coach has placed them on a team, make up a short code for them, e.g.
TPD-P-4F82
- Open
tpd_register.html in a plain text editor, find VALID_PLAYER_CODES: [] near the top of the CONFIG block, and add the code as a new line, e.g. VALID_PLAYER_CODES: ["TPD-P-4F82"] (separate multiple codes with commas)
- Save and re-upload the file (see step 3 below), then email that code to the family so they can complete registration here
1. Create your pricing plans in PayPal (no code)
- Log in to PayPal Business, go to
paypal.com/buttons
- Choose Smart Subscribe, then Create Plan
- Set it up as a monthly recurring plan. Make one plan called "TPD Monthly — Full Price" at $180.00/month, then Turn Plan On
- PayPal shows you a Plan ID (starts with
P-...) and a chunk of button code containing a Client ID (the long string after client-id= in the script tag) — copy both
- Repeat step 2–4 for each discount amount you want to be able to offer, e.g. "TPD Monthly — $20 off" at $160.00/month. You only need to do this once per discount amount you plan to reuse.
2. Paste your IDs into this file
- Open
tpd_register.html in a plain text editor (Notepad, TextEdit, VS Code — anything that opens plain text)
- Near the top of the file, find the section that starts with
const CONFIG = {
- Replace
"BAA2EC-oCorUptdEWnDxqxkvSVbq6DxQ8k88RFTqAwpYkZN4hd6tpslPCfNAr4nmaVNa0c87Eo7_htiGSE " with the Client ID you copied
- Replace
"P-40S204576E2977525NKLPHSY " with the Plan ID for your full-price plan
- For each discount code you want to offer (e.g. a sibling discount, a scholarship spot), add a line inside
PROMO_CODES: {
"DIRFEE": { off: 130, planId: "P-1AF39901S12793314NKL3SMA" },
"FNDRFEE": { off: 50, planId: "P-661823042Y8299548NKL3T5Y" },
"DBLRST": { off: 115, planId: "P-4W387815AG420260JNKL3UTY" }
},
with the code, the dollar amount off, and that discount's Plan ID — a few examples are already there for you to copy and edit
- Save the file and re-upload/re-host it (see below)
You don't need one plan per family — just one PayPal plan per discount amount (e.g. $10 off, $20 off). Give a family a code that resolves to the right amount, and it'll charge the discounted price automatically.
3. Put this page online tonight
- Fastest: go to
netlify.com/drop in a browser, drag this HTML file onto the page — you'll get a live link in under a minute, no account needed.
- Already have a website (Squarespace, Wix, GoDaddy, etc.): most site builders let you upload a custom HTML page or embed one — ask your host's support chat "how do I upload a custom HTML page" if you don't see it.
- Once it's hosted, that's the link you send to parents.
Every registered player's subscription will also show up automatically in your PayPal Business account under Subscriptions, with the parent's name, email, and plan — that's your live payment record even before it's added to your roster dashboard.