sailias / cryptocoin_payable Goto Github PK
View Code? Open in Web Editor NEWRuby Crypto Coin payment processing gem
License: MIT License
Ruby Crypto Coin payment processing gem
License: MIT License
Is this a good gem to use if I want to provide all my users with a simple crypto wallet? Just receiving and sending of one currency.
Please update the money-tree
dependency to the more actively maintained fork: https://github.com/GemHQ/money-tree
This fork has fixed money-tree 0.9.0's libssl-dev
issue that prevents apps using cryptocoin_payable from being deployed to Heroku's heroku-16
stack:
GemHQ/money-tree#23
i try to create pay on BCH.... and i get this:
ArgumentError ('bch' is not a valid coin_type):
I'm considering adding support for DOGE in this library. Would someone be able to give me some pointers?
Thanks for the gem!
I added the xpub public key and transfered to the coinpayment address that was created, i can see the transaction has been confirmed but it hasn't appear on my wallet. Maybe i'm missing something?? this was on the bitcoin mainnet.
cryptocoin_payable.rb
CryptocoinPayable.configure do |config|
config.currency = :usd
config.testnet = false
config.request_delay = 0.5
config.expire_payments_after = 15.minutes
config.configure_btc do |btc_config|
# btc_config.confirmations = 3
# btc_config.node_path = ''
btc_config.master_public_key = 'xpub_address'
end
config.configure_bch do |bch_config|
# bch_config.confirmations = 3
# btc_config.node_path = ''
bch_config.master_public_key = 'tpub...'
end
config.configure_eth do |eth_config|
# eth_config.confirmations = 12
# eth_config.node_path = ''
eth_config.master_public_key = 'tpub...'
end
end
hi
thanks for this gem.
I have an issue when I run
`rake cryptocoin_payable:process_prices
i get
rake aborted!
NameError: uninitialized constant Net::HTTP
gems/cryptocoin_payable-1.4.5/lib/cryptocoin_payable/adapters/base.rb:92:in `get_request'
ruby 2.5.3
rails 5.2.2
also I don't understand how to generate the Master Public Key. Maybe you have a bit more documentation ?
thanks
@Sailias my app has a need to pay out users periodically (as well as collect payments on their behalf which this gem already covers). Would it make sense to add this feature to cryptocoin_payable? I'm envisioning this as just an extra method to each coin adapter that will interact with the correct API (e.g. Blockcypher for btc). And then wrapped in a Rake task.
i try the command:
rake cryptocoin_payable:process_payments
and return >
PaymentProcessor: Unknown error encountered, skipping transaction
CryptocoinPayable::NetworkNotSupported
i see the code on > lib/cryptocoin_payable/adapters/bitcoin_cash.rb
at line:
the prefix bchtest. not work anymore
Hi,
I can't understand how to generate master_public_key for ethereum. Anyone one has a little piece of code that could help me ?
thanks
It's not secure to use mnemonic on server. It's better to calculate ethereum addresses corresponding to an extended public key.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.