Class: Bygpay::Withdraw::Mobile

Inherits:
Bygpay::Withdrawals show all
Defined in:
lib/bygpay/withdraw/mobile.rb

Instance Attribute Summary

Attributes included from Utils

#response, #response_text, #result, #status, #transaction_id, #uuid

Instance Method Summary collapse

Methods included from Utils

#deposit_status_endpoint, #get_status, #http_connect, #mobile_deposit_endpoint, #mobile_withdraw_endpoint, #parse_response, #post, #withdraw_status_endpoint

Instance Method Details

#send(amount, payload = {}) ⇒ Object

"walletno" : "0276967627",
"provider": "TIGO",
"extrnx_code": null

Perform a mobile deposit request



11
12
13
# File 'lib/bygpay/withdraw/mobile.rb', line 11

def send(amount, payload ={})
  post(mobile_withdraw_endpoint, payload.merge({amount: amount}))
end

#transaction_status(uuid) ⇒ Object

Return deposit transaction status



16
17
18
# File 'lib/bygpay/withdraw/mobile.rb', line 16

def transaction_status(uuid)
  get_status(withdraw_status_endpoint,uuid)
end