UnifiedPayment
Provides the necessary library through UnifiedPayment::Client to interact with UnifiedPayment Gateway to
- Initiate a payment
- Get payment status
- Reverse a completed payment
Also provides with MVC structure which can be extended according to the application.
Set Up
Add To Gemfile:
For Rails 3
gem 'unified_payment', '1.0.1'For Rails 4
gem 'unified_payment', '1.1.0'And run below command
bundle
bundle exec rails g unified_payment:install
bundle exec rake db:migrateAlso add your configurations in a yml file. For example, here is
config/unified_payment.ymlmerchant_name: 'Your Merchant name at gateway'
base_uri: "http://127.0.0.1:5555" #same as stunnel's accept port.To Run Specs
bundle
cd spec/dummy
bundle exec rake test_unified_paymentCredits
Copyright (c) 2014 vinsol.com