Payment integrations
Payment gateways that schools configure themselves on the e-learning platform, with recurring subscriptions, plus a Cora module for WHMCS written from scratch.
- Role
- Backend
- Stack
- PHP, Laravel, Stripe, PayPal, Cora, WHMCS
- Year
- 2024
- Built at
- JMV Technology
Context
JMV runs an e-learning platform used by several schools, each selling its own courses. Until then, the platform’s payments only went through Cielo.
The problem
Relying on a single gateway held schools back: each one has its own bank, fees and customers, and many needed recurring billing, not just one-off course sales.
The approach
I worked on two fronts:
- On the e-learning platform, I implemented the Stripe and PayPal integrations, which schools register and configure themselves, alongside the existing Cielo. Each gateway’s payment notifications update subscriptions and enrolments on the platform.
- In WHMCS, which JMV uses for billing, I built from scratch, in plain PHP, a Cora module (Cora is a Brazilian digital bank) to create charges directly through it.
The hard part: recurrence
One-off charges are simple; recurrence is not. Every gateway models subscriptions its own way, and the platform has to reflect what happens in each cycle correctly: renewal, failed payment, cancellation. Keeping subscription state consistent with what the gateway reports is what took the most care.
Result
Schools on the platform no longer depend on a single gateway: each one picks and configures the payment method that fits it, including for courses with recurring billing. And JMV gained Cora as a billing option inside WHMCS.