Class: Payoneer::GetTokenRequest
- Inherits:
-
Object
- Object
- Payoneer::GetTokenRequest
- Defined in:
- lib/payoneer/get_token_request.rb
Instance Method Summary collapse
Instance Method Details
#credentials ⇒ Object
11 12 13 14 15 |
# File 'lib/payoneer/get_token_request.rb', line 11 def credentials { :p1 => Payoneer::Configuration.username, :p2 => Payoneer::Configuration.password, :p3 => Payoneer::Configuration.partner_id } end |
#get_token(payee_id, callback_url) ⇒ Object
5 6 7 8 9 |
# File 'lib/payoneer/get_token_request.rb', line 5 def get_token(payee_id, callback_url) Payoneer::Request.new.execute "GetToken", Payoneer::GetTokenResponse, credentials.merge({ :p4 => payee_id, :p6 => callback_url }) end |