Social class classifies the population according to income, residence, or resource access. Different studies have shown a relationship between social class and prosocial behavior; however, the relationship in Iterated Prisoner's Dilemmas (IPD) is unclear. This study assessed how belonging to any of three social classes (lower, medium, and upper) according to a three categories classification system (objective, subjective and emergent) influences the cooperation rate against different opponent's strategies: always cooperate, tit for tat, and always defeat (ALL_C, TFT, ALL_D), and unsignaled changing strategy in a gamified IPD. Also, we evaluated whether some of the participants' social perceptions, motivation to play, and opponent's strategy discrimination affect cooperation. Data from Colombia and Brazil indicate that cooperating in the IPD game is not a matter of social class; the opponent's strategy and motivation to play influenced the cooperation rates in this study. Social perceptions such as liking, willingness to cooperate again, and the perceived opponent's social orientation correlated with cooperation. Social class seems to have affected the sensitivity to changes between strategies in particular classification systems.