This Plugin works with the Wallet Services from https://dojah.io

dojah.wallet.create(dob,phone_number,last_name,first_name,bvn,middle_name)

Initiate this Method to create a Wallet.

Usage

from dojahcore.dojah import Dojah

api = Dojah()
try:
    wallet_res =  api.wallet.create('22-Jan-1998','09069999999','John','Doe')
    print(wallet_res)
except Exception as e:
    print(str(e))

Arguments

Arguments Type Description
dob * string Date of birth (DD-[Jan-Dec]-YYYY) required
phone_number * string Phone number required
last_name * string Last name required
bvn string Bank verification number Optional
middle_name * string Middle name Optional

Returns

{
   "wallet_id":"d55f1699-d5da-464f-b9ab-6c1dba580db7",
   "wallet_amount":500,
   "account_number":"5877334476",
   "phone_number":"09069999999",
   "bank_name":"VFD MFB"
}

dojah.wallet.details(wallet_id):

Usage

from dojahcore.dojah import Dojah

api = Dojah()
try:
    wallet_res =  api.wallet.details('d55f1699-d5da-464f-b9ab-6c1dba580db7')
    print(wallet_res)
except Exception as e:
    print(str(e))

Arguments

wallet_id: The wallet Id

Arguments Type Description
wallet_id * string The wallet Id required

Returns

{
   "wallet_id":"d55f1699-d5da-464f-b9ab-6c1dba580db7",
   "wallet_amount":500,
   "account_number":"5877334476",
   "phone_number":"09069999999",
   "bank_name":"VFD MFB"
}

dojah.wallet.transfer_funds(amount,recipient_bank_code,recipient_account_number,wallet_id)

Transfer funds between accounts

Usage

from dojahcore.dojah import Dojah

api = Dojah()
try:
    wallet_res = api.wallet.transfer_funds('5000','052','0244332222','d55f1699-d5da-464f-b9ab-6c1dba580db7')
    print(wallet_res)
except Exception as e:
    print(str(e))

Arguments

Arguments Type Description
wallet_id * string The wallet Id required
recipient_account_number * string Account number to receive the funds required
recipient_bank_code * string The bank code of the recipient required
amount * string The amount to transfer required

Returns

{
   "wallet_id":"d55f1699-d5da-464f-b9ab-6c1dba580db7",
   "transaction_amount":5000,
   "transaction_type":"",
   "recipient_account_number":"",
   "sender_account_number":"",
   "transaction_remarks": "",
   "transaction_reason": "",
   "transaction_id": "",
   "date_created": ""
}

dojah.wallet.transaction(transaction_id) - Get transaction details

Usage

from dojahcore.dojah import Dojah

api = Dojah()
try:
    trans = api.wallet.transaction('transaction1d')
    print(trans)
except Exception as e:
    print(str(e))

Arguments

transaction_id: The transaction Id

Arguments Type Description
transaction_id * string The transaction Id required

Returns

{
   "wallet_id":"d55f1699-d5da-464f-b9ab-6c1dba580db7",
   "transaction_amount":5000,
   "transaction_type":"",
   "recipient_account_number":"",
   "sender_account_number":"",
   "transaction_remarks": "",
   "transaction_reason": "",
   "transaction_id": "",
   "date_created": ""
}

dojah.wallet.transactions(wallet_id) - Get all transactions

Usage

from dojahcore.dojah import Dojah

api = Dojah()
try:
    trans = api.wallet.transactions('d55f1699-d5da-464f-b9ab-6c1dba580db7')
    print(trans)
except Exception as e:
    print(str(e))

Arguments

wallet_id: Wallet Id

Arguments Type Description
wallet_id * string The wallet Id required

Returns

{
   "transactions":[
   ],
   "total":0,
   "previous_page":"",
   "next_page":"",
   "total_pages":1,
   "current_page":1
}

Did this page help you?