Thanks for the info. I just came across Exodus Wallet (with Moonpay) to buy and send bitcoin. It is probably the easiest, user friendly wallet/payment system I have come across.I don't know -- it may, or it may not, work.
Personally, I would not do it directly from an ATM.
Purchase the BTC from the ATM and transfer the finds to your own wallet first.
Then, the BTC are just in your wallet with your total BTC balance, just like with any other BTC you may have regardless of how they were acquired.
Once the BTC are in your wallet, you can simply pay the source from your own personal wallet.
This way you will have a record in your wallet and all the payment details (including evidence on the blockchain of a transfer from your wallet to the source).
Here is a link to an example of a popular crypto wallet that can be used for this: Best Crypto Wallet for Desktop & Mobile: Altcoin & Bitcoin | Exodus