Gain a membership after spending $100 in a transaction?

Is it possible to gain a membership automatically after paying e.g. $100 in a single transaction?