Online payment by credit card is also regarded as credit card consumption. But there is a certain difference between spending in a physical store and spending in a physical store. The main difference is that online consumption has no points. If the cardholder wants to pay the annual fee free online, most banks count the consumption times.
However, different banks have different regulations, and there are some exceptions. Please consult your local credit card bank for details.