Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/singpolyma/ripple-rails
Rails integration for Ripple payment notifications.
https://github.com/singpolyma/ripple-rails
Last synced: 2 months ago
JSON representation
Rails integration for Ripple payment notifications.
- Host: GitHub
- URL: https://github.com/singpolyma/ripple-rails
- Owner: singpolyma
- License: isc
- Created: 2013-04-04T23:05:04.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-04-26T12:41:01.000Z (over 11 years ago)
- Last Synced: 2024-05-22T07:57:53.600Z (7 months ago)
- Language: Ruby
- Homepage: https://rubygems.org/gems/ripple-rails
- Size: 98.6 KB
- Stars: 5
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: COPYING
Awesome Lists containing this project
- awesome-xrpl - Ripple Rails
README
This gem provides a simple facility for integrating the Ripple payment system into a Rails project.
Create a file in your project at config/ripple.yml with two configuration keys:
:action: RippleController#notify
:address: ripple_addressThe action key should specify a particular action on a controller in your app. When transactions are sent to the ripple address(es) specified, a request to that action will be simulated, with params[:transaction] set to an object representing the transaction data.
If you do not specify an address, then all transactions on the Ripple network will be reported to your app.
You may optionally specify the websocket address of a Ripple server as :websocket, otherwise the default will be the server at ripple.com. Only transactions that have been validated by the server are reported, so if you trust the server than you can trust that the transactions are real.
To start monitoring for transactions, simply run ripple-rails from the root of your app.