Hello, good day and thanks for your question. Sorry to know about this and to add to the above, you may check and follow the directive to check if the order has reflected on your account and get your friend to logout and login to the game again. If the issue still happens, you may try to check and see if you will be able to request and be granted of a refund as "Some Products are not eligible for return or refund; unless otherwise provided by law or by a particular offer, all purchases of these types of Products are final and non-refundable. Products ineligible for return and refund include, but are not limited to, the following:"
Digital apps, games, in-app content, in-app subscriptions, movies, TV shows, and associated content except Digital Game Products and Microsoft Subscription Services.
Third-Party subscription services billed through Microsoft.
gift cards and service/subscription cards (e.g., Skype, Xbox Live)
products that have been personalized or customized
special order products, if not part of a Store promotional offering.
random access memory ("RAM") products.
services that have been performed or consumed.
clearance items or those marked with a designation such as "Final Sale" or "Non-Returnable".
Reference links: https://support.microsoft.com/en-us/account-billing/get-a-refund-on-apps-and-games-bought-from-microsoft-81629012-aa4f-f48b-2394-8596f415072b
https://www.microsoft.com/en-us/store/b/terms-of-sale
Open the link below on a browser and you can go through the refund process from there.
https://support.xbox.com/en-us/help/subscriptions-billing/buy-games-apps/refund-orders