Get result code from server to check the validity of purchase data.