diff --git a/www-api/app/Controllers/WrenchWallet.php b/www-api/app/Controllers/WrenchWallet.php index e242db29..20379b6a 100644 --- a/www-api/app/Controllers/WrenchWallet.php +++ b/www-api/app/Controllers/WrenchWallet.php @@ -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'] = []; + } + } } diff --git a/www-api/app/Models/WrenchWalletModel.php b/www-api/app/Models/WrenchWalletModel.php index 875cdaed..f8f1e073 100644 --- a/www-api/app/Models/WrenchWalletModel.php +++ b/www-api/app/Models/WrenchWalletModel.php @@ -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' + ] + ]; + } } \ No newline at end of file