Working version with recurring payments