Just like your physical one. When you’re shopping online, you just enter the card details (which will be shown on the card in the app) as you would if you were reading them off your physical card.
You can also add this virtual card to a digital wallet, such as Apple Pay and Google Pay, and use your phone to make contactless payments.