Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ticket sales funcionality #13

Open
aplnx opened this issue Sep 6, 2021 · 2 comments
Open

Ticket sales funcionality #13

aplnx opened this issue Sep 6, 2021 · 2 comments

Comments

@aplnx
Copy link

aplnx commented Sep 6, 2021

I forked this project to include an interesting functionality. You can check it out on
https://github.com/aplnx/lnme (Changes are in tor-support source codes)

It allows you to sell tickets. The interface pulls the price from Binance. I did it in the way that the price exchange is calculated on the server-side, then it is unlikely that the price could be hacked (I hope at least! :) ). It works like that:
1 - Page shows the price in USD for a ticket and the respective amount in sats. The ticket has a fixed price in USD.
2 - If you click to buy, it generates an lnbtc invoice.
3 - It waits until the invoice is settled.
4 - It shows a ticked code after payment confirmation.

@bumi : Would you mind taking a look? I think the code Golang skills are not very good but the functionality is demonstrated anyway. You may use tickets.html inside the examples directory instead of index.html.

@bumi
Copy link
Owner

bumi commented Sep 6, 2021

thanks for the idea and reporting. I've looked at your fork, but it seems some files are missing? did you commit all Go files?
https://github.com/bumi/lnme/compare/tor-support...aplnx:tor-support?expand=1

@aplnx
Copy link
Author

aplnx commented Sep 6, 2021

thanks for the idea and reporting. I've looked at your fork, but it seems some files are missing? did you commit all Go files?
https://github.com/bumi/lnme/compare/tor-support...aplnx:tor-support?expand=1

Sorry. I am not used to Github. I have now ensure that files are in place. Please, let me know if you have any questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants