Authors may NOT be paid at all for their work, or may even pay to do it.
I am a self-funded PhD student and no one paid me for the work that went into my open access paper. As it happens in this case the journal waived the publication fee, so no one paid anyone anything except I suppose the nominal pro-rata portion of my university fees that I paid.