'Set the contribution amount pre-filled in a session var.'

def _set_contribution(self, amount, course_id):

    session = self.client.session
    session['donation_for_course'] = {unicode(course_id): amount}
    session.save()
