Command Shop [Question]

I need some sort of method to take money from players and have the server execute a command. I’m not sure what options there are or what the best one is for me so if you have any ideas let me know.

I’m currently using nucleus kits, however it’s not overly straightforward for players in regards to how much they cost and what they’ll actually be receiving.

For example, I need something that informs a player that they’ll be losing 100,000$, and gaining access to /fly. If they choose to confirm/buy this, the server will then execute /lp u {name} p set nucleus.fly.base as well as removing 100,000$ from their balance.

Thanks in advance!