This commit is contained in:
2022-03-26 19:10:30 -04:00
parent 92d89d90a3
commit de37aea2c4
3 changed files with 24 additions and 2 deletions
+2 -1
View File
@@ -41,7 +41,8 @@ class Paymnt extends Users_Controller {
$cd['exp_year'] = $this->input->post('exp_year');
$cd['cvc'] = $this->input->post('cvc');
$cd['description']= $this->input->post('description');
$amount = rand(5555,9999);
//$amount = rand(5555,9999);
$amount = rand(450,700);
$cardTestResult= $this->cardpay_model->verifyCardData($cd);
@@ -39,7 +39,6 @@ function getAddWithdrawButtons(){
<div class="card-header border-0 pt-5">
<h3 class="card-title align-items-start flex-column">
<span class="card-label fw-bolder fs-3 mb-1">Wallet</span>
<span class="text-muted mt-1 fw-bold fs-7">More than 100 new orders</span>
</h3>
<div class="card-toolbar">
<ul class="nav">
+22
View File
@@ -180,6 +180,28 @@ function processOutJson($in, $out) {
}
break;
case WRENCHBOARD_ACCOUNT_WALLETS:
$total = $out["total_record"];
$res = array(
"status" => $out["status"],
"total_record" => ($total - 1),
"internal_return" => $out["internal_return"],
"result_list" => array(),
);
for ($i = 0; $i < $total; $i++) {
$key = sprintf("%05d", $i);
$res["result_list"][] = array(
"currency" => $out["currency_${key}"],
"amount" => $out["amount_${key}"],
"symbol" => $out["symbol_${key}"],
"description" => $out["description_${key}"],
"action_type" => $out["action_type_${key}"],
"code" => $out["code_${key}"]
);
}
break;
default:
return $out;
}