Skip to content

poviolabs/payoneer-rb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Add gem to your Gemfile and run bundle

gem 'payoneer-rb'

Usage

Configuration

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

Examples

Create signup url

Payoneer::Payee.create_link(params: { payee_id: '<payee_id>' })

Create a payout

Payoneer::Payout.create(
  payment_id: '<internal_payment_ref>',
  payee_id: '<payee_id>',
  amount: 170.45,
  description: '',
  currency: 'USD'
)

Check the program balance

Payoneer::Program.balance

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published