WooCommerce × Stregsystemet — Native Club Payments
Let F-Klub members pay with their stregdollar balance directly at WooCommerce checkout. No redirects, no friction, no third-party processors.
StregPay is a WooCommerce payment gateway plugin that bridges the F-Klub online store with the club's internal balance system — Stregsystemet. Members check out using the same balance they use at the bar.
Integrates as a first-class WooCommerce payment method. Members see their balance at checkout and pay in one click — no redirects, no OAuth friction.
Talks directly to the stregsystemet backend over its REST API. Deducts balance atomically on purchase confirmation.
Only authenticated F-Klub members with a valid stregdollar balance can use the gateway. Non-members fall back to standard payment methods seamlessly.
Spin up a full WordPress + WooCommerce + stregsystemet environment in seconds with Docker Compose. Zero host-machine dependencies beyond Docker.
The complete payment lifecycle runs between WooCommerce and the Stregsystemet API without ever leaving the club ecosystem.
Authenticates with their F-Klub username at WooCommerce checkout
StregPay queries Stregsystemet API for live stregdollar balance
If balance ≥ order total, StregPay appears as payment option
Stregsystemet deducts stregdollars atomically on order placement
WooCommerce confirms the order; balance is updated in real time
Live stregdollar balance displayed inline at checkout before the member commits to payment.
Balance deduction and order confirmation happen together — no partial states or double charges.
WooCommerce refunds return stregdollars directly to the member's account automatically.
Fully responsive payment UI — works flawlessly on every device members use.
Full settings panel in WooCommerce → Settings → Payments. Toggle, configure, and test without touching code.
File watcher auto-builds assets and syncs the plugin to the Docker container on every save.
StregPay is a standard WordPress plugin. Here's what you need to run it.
Clone, install, compose, and you're live. The watcher handles everything after that.
Install the Node.js build toolchain used to compile JS and CSS assets.
npm install
Spins up WordPress, WooCommerce, MySQL, and a local Stregsystemet instance.
docker-compose up -d
Copy the plugin files into the running WordPress container and fix permissions.
docker cp . stregpay-checkout-wordpress-1:/tmp/stregpay-checkout docker exec stregpay-checkout-wordpress-1 \ cp -r /tmp/stregpay-checkout/. \ /var/www/html/wp-content/plugins/stregpay-checkout/ docker exec stregpay-checkout-wordpress-1 \ chown -R www-data:www-data \ /var/www/html/wp-content/plugins/stregpay-checkout
Navigate to the local dev site. Activate StregPay from WooCommerce → Settings → Payments.
Rebuild and sync manually for focused changes, or let the watcher do it automatically as you code.
# 1. Compile JS + CSS npm run build # 2. Push to container sh update-container.sh
# Starts watcher — Ctrl+C to stop npm run dev-watch # ✓ Auto-rebuilds on file change # ✓ Auto-updates plugin in container
docker-compose up -d
docker-compose down
docker-compose logs -f
docker-compose restart
docker exec -u root …
docker exec … wp …
docker exec -u root for administrative commands that need to write outside www-data scope.
npm run build) first.