Skip to content

Latest commit

 

History

History
58 lines (34 loc) · 1.67 KB

README.md

File metadata and controls

58 lines (34 loc) · 1.67 KB

AzulPayButton

This is a simple gem to integrate Azul Payment Page in your Ruby on Rails app.

Installation

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

Usage

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!! 😎

Development

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.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

The gem is available as open source under the terms of the MIT License.