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