Closed chill117 closed 6 years ago
I've created a new branch for monero, until it is ready to be merged into master.
It should be possible to use the monerod RPC API to get current, unconfirmed transaction data:
To re-check old payment requests:
During development, can use the publicly accessible nodes found here:
Done by #127
This can be done in parts:
generatePaymentRequest(amount, cb)
- Should call the callback function with an error (in case of failure) or with a string representing a valid payment request for monero. This string will be converted to a QR code and displayed to the customer.checkPaymentReceived(paymentRequest, cb)
- Should call the callback function with an error (in case of failure) or with a bolean (true
orfalse
) representing the state of the payment wheretrue
means received.getExchangeRates(cb)
- Should return an object like this:{ 'CURRENCY_CODE': 'RATE' }
example:{ 'USD': '0.0012', 'EUR': '0.00093' }
See bitcoin payment method for inspiration.