Here is a link to the WP Dev center. It has a lot of information on getting started. I saw in one link where it costs $19 for a subscription to Dev Center. The developer tools are free. Didn't see the charge per sale. I'm sure one of the developers could give you a bit more information and correct me if I'm wrong. But at least it's a place for you to start.