Class: Bygpay::Withdraw::Mobile
- Inherits:
-
Bygpay::Withdrawals
- Object
- Bygpay::Withdrawals
- Bygpay::Withdraw::Mobile
- 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
-
#sendmoney(amount, payload = {}) ⇒ Object
{ “walletno” : “0276967627”, “provider”: “TIGO”, “extrnx_code”: null } Perform a mobile deposit request.
Methods inherited from Bygpay::Withdrawals
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 |