My company is currently using stripe as payment processor. As a side project, I want to explore the possibility of creating my own payment processor at home (i.e. become my own stripe). Does anyone know what’s involved?

I can probably develop a stripe clone by myself. But I want to focus on the legal/financial aspects.

Pls don’t tell me to accept bitcoin. Already got that rolling.