Add gem to your Gemfile and run bundle
gem 'payoneer-rb'
All of the following properties have to be set in order for gem to work properly
# config/initializers/payoneer.rb
Payoneer.configure do |c|
c.environment = # payoneer env (:sandbox (default) | :production)
c.callback_url = # callback url used for sending auth codes (Optional)
c.program_id = # program id
end
Payoneer::Payee.create_link(params: { payee_id: '<payee_id>' })
Payoneer::Payout.create(
payment_id: '<internal_payment_ref>',
payee_id: '<payee_id>',
amount: 170.45,
description: '',
currency: 'USD'
)
Payoneer::Program.balance