vinsol/Spree-Unified-Payments

View on GitHub
README.md

Summary

Maintainability
Test Coverage
Spree-Unified-Payments [![Code Climate](https://codeclimate.com/github/vinsol/Spree-Unified-Payments.png)](https://codeclimate.com/github/vinsol/Spree-Unified-Payments) [![Build Status](https://travis-ci.org/vinsol/Spree-Unified-Payments.png?branch=master)](https://travis-ci.org/vinsol/Spree-Unified-Payments)
================
Enable spree store to allow payment via ["Unified Payments"](http://unifiedpaymentsnigeria.com/) (a preferred e-payment service provider in Nigeria, Africa)

Dependencies
================

1) gem unified_payment
```ruby
gem 'unified_payment'
```
2) delayed_job
```ruby
gem 'delayed_job_active_record'
```
3) spree_wallet
```ruby
gem 'spree_wallet'
```

Set Up
================

Add To Gemfile:

For Spree 2.2.x
```ruby
gem 'spree_unified_payment', '1.2.0'
```
For Spree 2.1.x
```ruby
gem 'spree_unified_payment', '1.1.1'
```
For Spree 2.0.x:
```ruby
gem 'spree_unified_payment', '1.0.2'
```

And run below command
```ruby
bundle exec rails g spree_unified_payment:install
```
Usage
---------
Customer :

Customer can pay via Unified Payment payment method at Checkout and can also see the list of Unified Payment Transactions initiated by them.

If a transaction is completed but the order fails to complete, the amount paid by the customer is added to the customer's account which he can use in future so that the user does not get stuck while making the payment.

Admin :

Admin can see the list of Unified Payment Transactions initiated by customers under admin section.

Admin can also ping Unified Payment gateway for an updated status of a transaction and the transaction is then updated accordingly.

Testing
---------
Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.
```ruby
bundle
bundle exec rake test_app
bundle exec rspec spec
```

Credits
-------

[![vinsol.com: Ruby on Rails, iOS and Android developers](http://vinsol.com/vin_logo.png "Ruby on Rails, iOS and Android developers")](http://vinsol.com)

Copyright (c) 2014 [vinsol.com](http://vinsol.com "Ruby on Rails, iOS and Android developers"), released under the New MIT License