added correct version for onPaid