You need to talk to Microsoft, not this group. If you were using the Microsoft Store to make the purchase, then go back and look for links that are provided for getting help. There should be one for purchases. You may have to use the search box in Microsoft Store that is provided.
Look at your account too. Example image below. This is found looking at the Microsoft Store and your account.
Who issued your card, contact them and see what is going on and ask why your card did not work for the purchase. Phone numbers should be on the back of the card.