No commit activity in last 3 years
No release in over 3 years
Simplified use of Brainblocks (Nano payment) in Rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.15
~> 10.0
 Project Readme

brainblocks-rails

Simplifies use of Brainblocks in Rails.

Installation

Add this line to your application's Gemfile:

gem 'brainblocks-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install brainblocks-rails

Include it in your application.js as:

//= require brainblocks

Usage

brainblocks(wallet, amount, currency, on_success)

on_success Takes javascript. In the future I hope to support Rails actions.

amount Is in Rai; 1000 Rai = 0.001 XRB (or 1 Mxrb)

Example:

brainblocks("xrb_1rube3u6iyshxpe5g737zkqnmk7jq4whoi76dw1zip5wcy4y4rm84jw3bs79", 1000, "rai", "console.log('Payment successful!', data.token);")

https://brainblocks.io/