Class: Bygpay::Withdraw::Mobile

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

Instance Attribute Summary

Attributes included from Utils

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

Instance Method Summary collapse

Methods inherited from Bygpay::Withdrawals

#transaction_status

Methods included from Utils

#card_deposit_endpoint, #deposit_status_endpoint, #expresspay_deposit_endpoint, #get_status, #http_connect, #hubtel_deposit_endpoint, #mobile_deposit_endpoint, #mobile_withdraw_endpoint, #parse_response, #paystack_deposit_endpoint, #post, #rave_deposit_endpoint, #withdraw_status_endpoint

Instance Method Details

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

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

Perform a mobile deposit request



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

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