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
Bitcoin payments #30
Bitcoin payments #30
Conversation
Woah! You made a lot of stuff! Sadly, I won't be able to review this until I am done with my exams 😅 , so it may take a while... Please be patient, and thanks! 😄 |
By the way, are you affiliated with Blockonomics? |
Thanks looking forward to your feedback when you have the time. I will reopen the pull-request for you to have a look and comment on.
Yes, I'm a developer for Blockonomics. |
I have opened a new pull-request with modified instructions. |
Hello , I love this bitcoin payment feature , thanks |
Please note the features request has been moved here: #31
In the testing websocket version orders are accepted instantly (0 confirmations). This ensures payments are fully confirmed to your wallet before credit is funded. (This will happen anytime in the background, and notify the user) |
Integrating Bitcoin
If you plan on accepting Bitcoin payments, enter your Blockonomics api key into the config.ini file:
https://www.blockonomics.co/merchants#/
In order to receive notifications of Bitcoin payments, you are required to deploy your bot in order to receive a public url where webhooks can be delivered to Greed Bot.
For testing ngrok https://ngrok.com/download works well:
./ngrok http 5000
https://greed.ngrok.io/
For production gunicorn can be used https://pypi.org/project/gunicorn:
gunicorn --workers=1 core:app
or addweb: gunicorn --workers=1 core:app
to your ProcfileOnce Greed Bot is running and you have received your public url eg.
https://greed.herokuapp.com/
Callback URL
callback?secret=YOUR_SECRET_HERE_
to the end of your URL. eg.https://greed.herokuapp.com/callback?secret=YOUR_SECRET_HERE_
, replacing with the secret entered in your config.ini file.https://www.blockonomics.co/merchants#/page3