Sol Integra Terapias
What it is
Sol Integra Terapias is the site of a psychologist and spiritual healer. Visitors read about her work, browse courses and workshops, download free resources, read the blog and book a session through WhatsApp. Buying a course creates a student account, and the student watches the lessons in a private area called Mis cursos.
Behind it there is a Spanish admin panel where she edits pages, photos, courses, lessons, prices and even the site's colours and fonts, with a live preview.
How it's built
I built it with Next.js 16 and Payload CMS 3 on Postgres. The business logic lives in a separate set of shared packages (@platform/payments, @platform/video, @platform/core), so the site itself holds mostly the design.
- Payments by country: buyers in Argentina pay with Mercado Pago in pesos, everyone else through Hotmart. The routing rules are editable in the admin, and each provider sits behind an adapter, so adding another one does not touch the site.
- Verified webhooks: every payment notice is checked (signature, the payment re-read from Mercado Pago's API, same product and amount) before access is granted. Each step can run again safely, so a provider retry finishes a half-done purchase. Refunds and chargebacks remove only the access that order gave.
- Protected video: lessons play from Bunny Stream with signed links that expire after three hours, and uploads go from the admin straight to Bunny. A student can be logged in on two devices at most.
- Test mode: an admin can switch one browser into test mode and buy courses through a built-in payment simulator. Test sales are flagged, expire after 48 hours and can be cleared.
- Tested and audited: 42 unit tests on the platform and 50 integration tests against a real Postgres, including forged notices and paying a cheap product for an expensive order. Several review passes fixed issues such as an open first-account endpoint.
Why I made it
It is a course site for a therapist, built from her design mockups. I split it into a site and a shared platform on purpose: the next therapist gets a new repository with her own design, accounts and hosting, while payments, video, students, sales and the admin panel stay the same across sites.
Timeline
Built and audited in October 2026.
Technologies
- Next.js