Zooz payments
zooz_payments gem is a ruby wrapper for zooz Affiliate Network
Installation
Add this line to your application's Gemfile:
gem 'zooz_payments'
And then execute:
$ bundle
Or install it yourself as:
$ gem install zooz_payments
Usage
Create initializers/zooz.rb
ZoozPayments.setup do |config|
config.sandbox = true # boolean
config.unique_id = ''
config.app_key = ''
config.response_type = '' # default 'NVP'
end
Sample
api = ZoozPayments::Api.new
response = api.open_transaction('openTrx',100,'USD',{})
response = verify_transaction('verifyTrx', 'transaction_id','transaction_display_id',{})
Contributing
- 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