Adding payments to a game

In order to accept payments you need to run a wallet and get it connected to the lightning network Your send a request to your wallet to generate invoices, and gives the invoices to players. The game then periodically checks with the wallet to see if the payment has been completed.


For web-based games where you want the wallet on a seperate server there is an extra step, as the game engine is not allowed to make external domain calls. So we have to add a php script that the game calls, which in turn makes request from your wallet