<?php
include "system/bank/bank-index.php";
include "system/bank_test/lr_func_bank_api.php";
include "system/airtime/airtime.php";
include "system/one4all/one4all_func.php";
include "system/hubtel/hubtel_func.php";
include "config/functions/func_notification.php";
include "config/functions/func_misc.php";
include "config/functions/func_customer.php";
include "../config/connection.php";
include "config/functions/func_transactions.php";
require "system/vend/classes/Vend.php";
require "system/zenith/func_card.php";



//$nn  = hubtelPush($dbc,$customerName,$phoneNum,$email,$channel,$transaction_uid,$totalAmount,$description);
//$nn  = hubtelPush($dbc,"PRINCE BOATENG","233208274852",$email,"VODAFONE-GH","R123457711TEST","1","MM-PUSH");
//var_dump($nn);
//array(2) { ["ResponseCode"]=> string(4) "0000" ["Data"]=> array(8) { ["AmountDebited"]=> float(1.01) ["TransactionId"]=> string(32) "36d8ceb2c69e4c539213f3e8e26a2c4d" ["ClientReference"]=> string(14) "R123457711TEST" ["Description"]=> string(52) "MTN Mobile Money payment has been made successfully." ["ExternalTransactionId"]=> string(10) "5902804501" ["Amount"]=> float(1) ["Charges"]=> float(0.01) ["Meta"]=> NULL } }

//array(2) { ["ResponseCode"]=> string(4) "0001" ["Data"]=> array(8) { ["AmountDebited"]=> float(1.01) ["TransactionId"]=> string(32) "3d25fa1603df43858f6c1dba254413c4" ["ClientReference"]=> string(14) "R123457711TEST" ["Description"]=> string(66) "Request has been accepted. A callback will be sent on final state." ["ExternalTransactionId"]=> string(32) "AG_20190521_0000548a9e45ab2aa930" ["Amount"]=> float(1) ["Charges"]=> float(0.01) ["Meta"]=> NULL } }

//print_r(bank_transfer_funds2("1002111100032","1002111000709","3","0","PAYGLOBAL BTB",'11241254775'));
//print_r(bank_transfer_funds("0110002570000","132000000043","1","0","BTB",'11241254775'));
//print_r(bank_transfer_funds("1002111100032","1002111000708","0.50","0","BTB Charge",'11241254775'));
//print_r(bank_transfer_funds("0124175088800","1002111100032","3","0","PAYGLOBAL BTB",'11241254775'));
//print_r(bank_validate_accountNumber("4043112400088"));
//print_r(bank_validate_accountNumber("1055122000714"));
//print_r(bank_mini_statement("1002111100032"));
//print_r(bank_mini_statement("4020122005291"));
//print_r(bank_mini_statement("2048122000099"));
//$test = buy_airtime(+233246022602,1,4,"113");
//print_r($test);
//print_r(bank_transfer_funds("114000000088","1002111100032","1","0","BTW",'171808739898'));
//print_r(bank_transfer_funds("114000000088","4015120100037","1","0","WTB",'124578965236'));
//print_r(bank_get_account_transactions(4015120100037));
//print_r(bank_balance_request("1002111100032"));

//print_r(infobip("+233246022602","TEST"));
//print_r(sendSMS("+233246022602","TEST"));
//print_r(mNotify2("+233246022602","TEST"));

//print_r(bank_get_account_info(1031111500009));
//print_r(bank_get_account_info(1002111100032));
//print_r(bank_get_account_transactions(3026122004773));

//print_r(bank_get_linked_accounts_new(+233246022602));
//print_r(bank_get_linked_accounts_new(+233208274852));
//print_r(bank_get_linked_accounts(+233246022602));

//print_r(lr_bank_transfer_funds_new('00111103041801','0021102395901',1,0,'GNMM-BTB','98244136363'));
//print_r(lr_bank_get_linked_accounts_new(+231886911649)); 00122003726201 00111103041801
//print_r(lr_bank_get_account_info('0021102395901'));
//print_r(lr_bank_get_account_info('423700000031'));
//print_r(lr_bank_get_account_info('423700000031'));
//print_r(lr_bank_get_account_info('0011202602701'));
//print_r(lr_bank_get_account_transactions('0011202602701'));
//print_r(hubtelPush($dbc,'TestName',"+233243056828",'test@test.com','mtn-gh',1233444,1,'test'));

//echo md5(sha1("agyare")).md5("agyare"."xxxx");

//  routeSms(+233246022602,"My name is Ricky");


//echo urlencode("hello m team");

//print_r(twilio(+

//print_r(push_one4all("0246022602",1,"R123457711"));
//test123();

//echo substr("0246022602", -9);

//print_r(lr_bank_get_account_info("0021186867502"));
//$customerData = get_customer_by_phoneNum($dbc, '+233246022602');
//print_r(ps_signUp($dbc,$customerData,123445));
//$data = ps_new_transaction($dbc, $customerData,'CD19320181028101011', 2);
//$data = ps_confirm_new_card($dbc,$customerData,'CD19320181028101011','1.39');

//print_r($data);
//print_r(ps_add_new_card($dbc,$customerData,'visa','4448366600675430','Isaac Gyasi Nimako','330','02','21'));









