class Onlinepay::Payouts
Public Instance Methods
create(walletToken,amount,currency,orderNumber,opts={})
click to toggle source
# File lib/onlinepay/payouts.rb, line 4 def create(walletToken,amount,currency,orderNumber,opts={}) # POST '/api/v1/payouts' params = { walletToken: walletToken, amount: amount, currency: currency, orderNumber: orderNumber }.merge(opts).to_json response_ = RestClient.post(payouts_domain, params, { Authorization: bearer_authorize, content_type: :json, accept: :json }) response = JSON.parse(response_) end