addVirtualCardWallet
This commit is contained in:
@@ -243,7 +243,16 @@ class WrenchWallet extends BaseController
|
|||||||
|
|
||||||
if ( is_array($out) && isset($out['result_list'])){
|
if ( is_array($out) && isset($out['result_list'])){
|
||||||
foreach ($out['result_list'] as $index=>$item){
|
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'] = [];
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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'
|
||||||
|
]
|
||||||
|
];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user