addVirtualCardWallet

This commit is contained in:
CHIEFSOFT\ameye
2024-10-31 06:39:48 -04:00
parent 1394c0a712
commit 29ab345a2d
2 changed files with 36 additions and 1 deletions
+10 -1
View File
@@ -243,7 +243,16 @@ class WrenchWallet extends BaseController
if ( is_array($out) && isset($out['result_list'])){
foreach ($out['result_list'] as $index=>$item){
$out['result_list'][$index]['extra_actions'] = ['common soon '];
if ($item['code']=='USD'){
$out['result_list'][$index]['extra_actions'] =
[
'ADD_VIRTUAL_CARD' => $this->wrenchWalletModel->addVirtualCardWallet()
];
}
else{
$out['result_list'][$index]['extra_actions'] = [];
}
}
}
+26
View File
@@ -36,4 +36,30 @@ protected array $allSettings;
];
}
public function addVirtualCardWallet():array{
return [
[
"text" => 'Add Card',
"wallet_country" => ['US'],
"amount" => 0,
"id" => 1,
"code" => "USD",
"description" => "Add Virtual Debit Card",
"symbol" => "$",
"action_type" => "AC_AD_VIRTUAL_CARD",
"lorder" => 0,
"country" => "",
"processor" => 9010,
"current_balance" => 0,
"transfer_limit" => 0,
"wallet_uid" => "",
"escrow" => 0,
"status" => 0,
"show_balance" => false,
"rt_action_text" => "Add Card",
"banner" => 'https://www.wrenchboard.com/assets/images/apps/wallet/wallet-card.jpg',
"icon" => 'https://www.wrenchboard.com/assets/images/apps/wallet/icon/cards.png'
]
];
}
}