Spend action
This commit is contained in:
@@ -249,6 +249,12 @@ class WrenchWallet extends BaseController
|
|||||||
'ADD_VIRTUAL_CARD' => $this->wrenchWalletModel->addVirtualCardWallet()
|
'ADD_VIRTUAL_CARD' => $this->wrenchWalletModel->addVirtualCardWallet()
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
elseif ($item['code']=='NAIRA'){
|
||||||
|
$out['result_list'][$index]['extra_actions'] =
|
||||||
|
[
|
||||||
|
'SPEND_FROM_BALANCE' => $this->wrenchWalletModel->spendFromBalanceWallet()
|
||||||
|
];
|
||||||
|
}
|
||||||
else{
|
else{
|
||||||
$out['result_list'][$index]['extra_actions'] = [];
|
$out['result_list'][$index]['extra_actions'] = [];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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'
|
||||||
|
]
|
||||||
|
];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user