I\'m getting the error use of unassigned variable \"ps\" when declaring if paymentstatus is null or has value in the \"if\" statement. I\'m thinking that i allready declared ps
You haven't initialized ps...you need to initalize it with at least null value...
ps
null
PaymentStatus? ps = null;
The same applies to all other variables