Sha256: e94a183a2f1c502b719eb6d4309631d0bb696b39eaeb4a6a2087e40db1931f64
Contents?: true
Size: 1.2 KB
Versions: 3
Compression:
Stored size: 1.2 KB
Contents
Adds iPizza support to Rails 3+ applications. Provides rails generators and easy configuration loading. Read more about supported providers and configuration options form [ipizza gem hompage](https://github.com/Voog/ipizza). Installation ------------ In your `Gemfile` add `ipizza-rails` gem: gem ipizza-rails Usage ----- To start using iPizza in your rails application, you need to run the **init** generator first: rails generate ipizza:init This will create an example configuration file to `config/ipizza.yml` and create `config/certificates` directory and puts some test certificates into it. View helpers ------------ It is very convenient to put together form that will be submitted for payment request to payment provider with allthemighty `ipizza_form_for` view helper. In your controller, perhaps, declare payment object: @payment = Ipizza::Payment.new( :stamp => 123456, :amount => '15.00', :refnum => 1, :message => 'For all the candy', :currency => 'EUR' ) And in view file, generate form for Swedbank, for example: <%= ipizza_payment_form_tag @payment, :service => :swedbank do %> <%= submit_tag 'Pay some moneys' %> <% end %> TODO: ----- * Implement form helpers
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ipizza-rails-2.1.0 | README.markdown |
ipizza-rails-2.0.1 | README.markdown |
ipizza-rails-2.0.0 | README.markdown |