This is a simple gem to integrate Azul Payment Page in your Ruby on Rails app.
Add this line to your application's Gemfile:
gem "azul_pay_button", :git => "git://github.com/iCueto/Azul-Pay-Button.git"
And then execute:
$ bundle
run in the terminal:
$ rails g azul_pay_button
Edit the config file in /config/azul_config.yml
and use this snippet in your view:
<%= azul_pay_button(order_number, currency, amount, itbis) %>
Where:
-
order_number: is the order number of your transation.
-
currency: must be "$" to indicate DOP or "US$" to indicate Dollars. Others currency not work.
-
amount: is the price of your products, this value is add up to the itbis
-
itbis: this value not must be in percentage, must be in decimals or number.
And enjoy it!! 😎
After checking out the repo, run bin/setup
to install dependencies. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
The gem is available as open source under the terms of the MIT License.