Merge branch 'master' of bitbucket.org:venbainformationtechnology/golf_backend

This commit is contained in:
suseendhiran17 2023-06-15 14:38:16 +05:30
commit 8285b32314
2 changed files with 27 additions and 5 deletions

View File

@ -650,8 +650,30 @@ class PaymentController extends BaseController
public function payment_success( $local_order_id = null)
{
// $data['TransactionData'] = $this->TransactionModel->where('order_id', $local_order_id )->where('member_id', session()->get('logged_user'))->find();
// $memberCredits = $this->creditsModel->where('order_id', $local_order_id )
// ->where('member_id', session()->get('logged_user'))
// ->select('package_name')
// ->select('cost')
// ->selectSum('credit_points', 'credit_points')
// ->selectSum('cost', 'costSum')
// ->selectCount('package_name', 'pack_count')
// ->groupBy('package_name')->findAll();
// $Subtotal = 0;
// foreach ($memberCredits as $key => $ele) {
// $Subtotal = $Subtotal + $ele['costSum'];
// }
// $data['memberCredits'] =$memberCredits;
// $data['order_id'] = $local_order_id;
// $timestamp = strtotime($data['TransactionData'][0]['created_at']);
// $data['formattedDate'] = date('l, F j, Y', $timestamp);
// $data['Subtotal'] = $Subtotal;
// $data['gst'] = $this->RuleModel->select('value')->where('rule_key', 3 )->get()->getRow()->value;
// $data['pst'] = $this->RuleModel->select('value')->where('rule_key', 4 )->get()->getRow()->value;
// $data['card_brand'] = json_decode($data['TransactionData'][0]['transaction'] , true)['payment']['card_details']['card']['card_brand'];
// $data['last_4'] = json_decode($data['TransactionData'][0]['transaction'] , true)['payment']['card_details']['card']['last_4'];
// echo view('success_mail',$data);
// die();
if( $local_order_id != null)

View File

@ -1,9 +1,9 @@
<!DOCTYPE html>
<html lang="en-US">
<head>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</head>
<style>
.invoice {