how do i set auto billing ?

how do i set auto billing ?

i want to add auto billing
i working with monthly subscription

for example a customer needs to pay me 500$ a month

i want to insert his credit card / bank account once
and i want it to charge him automatically and send him an email for the payment

i also want it to use customer credit notes before the payment , so if i gave the customer 200$ credit note for this month its will only charge him with 300

is it possible ? 

thanks