Spend action

This commit is contained in:
CHIEFSOFT\ameye
2024-10-31 06:49:12 -04:00
parent 29ab345a2d
commit 2a7701c4ff
2 changed files with 32 additions and 0 deletions
+6
View File
@@ -249,6 +249,12 @@ class WrenchWallet extends BaseController
'ADD_VIRTUAL_CARD' => $this->wrenchWalletModel->addVirtualCardWallet()
];
}
elseif ($item['code']=='NAIRA'){
$out['result_list'][$index]['extra_actions'] =
[
'SPEND_FROM_BALANCE' => $this->wrenchWalletModel->spendFromBalanceWallet()
];
}
else{
$out['result_list'][$index]['extra_actions'] = [];
}
+26
View File
@@ -62,4 +62,30 @@ protected array $allSettings;
]
];
}
public function spendFromBalanceWallet():array{
return [
[
"text" => 'Spend',
"wallet_country" => ['NG'],
"amount" => 0,
"id" => 1,
"code" => "NAIRA",
"description" => "Spend from balance",
"symbol" => "$",
"action_type" => "AC_AD_WR_FUND",
"lorder" => 0,
"country" => "",
"processor" => 9010,
"current_balance" => 0,
"transfer_limit" => 0,
"wallet_uid" => "",
"escrow" => 0,
"status" => 0,
"show_balance" => false,
"rt_action_text" => "Spend",
"banner" => 'https://www.wrenchboard.com/assets/images/apps/wallet/wallet-card.jpg',
"icon" => 'https://www.wrenchboard.com/assets/images/apps/wallet/icon/cards.png'
]
];
}
}