Class: LazerPayModule::Payout

Inherits:
Wrapper
  • Object
show all
Defined in:
lib/lazerpay/main_module.rb

Instance Method Summary collapse

Constructor Details

#initializePayout

Returns a new instance of Payout.



48
# File 'lib/lazerpay/main_module.rb', line 48

def initialize; end

Instance Method Details

#bank(payload) ⇒ Object



56
57
58
59
60
# File 'lib/lazerpay/main_module.rb', line 56

def bank payload
    response = Agent.post( "/bank/payouts", { secret_key: @@sk, public_key: @@pk, data: payload } );

    return response.to_h;
end

#crypto(payload) ⇒ Object



50
51
52
53
54
# File 'lib/lazerpay/main_module.rb', line 50

def crypto payload
    response = Agent.post( "/crypto/payouts/initiate", { secret_key: @@sk, public_key: @@pk, data: payload } );

    return response.to_h;
end