⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.26
Server IP:
15.204.235.159
Server:
Linux srv.techlup.co.ke 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
tech
/
www
/
script
/
storage
/
framework
/
views
/
View File Name :
a59979bb9b91cc218d377bdae707d737bd601d9c.php
<?php $__env->startSection('content'); ?> <?php $total_am= str_replace(',','',$data->amount); ?> <!-- slider area start --> <section id="service_breadcrumb"> <div class="slider-area breadcrumb" id="service_breadcrumb_bg_img" style="background-image: url(<?php echo e(asset(content('hero','hero_image'))); ?>);"> <div class="container"> <div class="row"> <div class="col-lg-12"> <div class="breadcrumb-area text-center"> <h3 id="service_breadcrumb_title"><?php echo e(__('Select Payment')); ?></h3> <div class="breadcrump-title"> <span id="service_breadcrumb_des"><?php echo e(__('Home')); ?> / <?php echo e(__('Select Payment')); ?></span> </div> </div> </div> </div> </div> </div> </section> <!-- slider area end --> <!-- select payment area start --> <div class="select-payment pt-100 pb-100"> <div class="container"> <div class="row"> <div class="col-lg-8 offset-lg-2"> <div class="select-payment-content text-center"> <h3><?php echo e(__('Select Payment Method')); ?></h3> <div class="payment-main-content"> <div class="row"> <?php if(!empty(env('STRIPE_KEY'))): ?> <div class="col-lg-6"> <a href="#" data-toggle="modal" data-target="#stripe_modal"><img src="<?php echo e(theme_asset('monkey/public/img/stripe.png')); ?>"></a> </div> <?php endif; ?> <?php if(!empty(env('PAYPAL_CLIENT_ID'))): ?> <div class="col-lg-6"> <div id="paypal-button"></div> </div> <?php endif; ?> </div> </div> </div> </div> </div> </div> </div> <!-- select payment area end --> <div class="modal fade" id="stripe_modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title modal-stripe" id="exampleModalLabel"><?php echo e(__('Card Information')); ?></h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <form action="<?php echo e(route('payment.store')); ?>" id="payment-form" method="POST"> <?php echo csrf_field(); ?> <?php $value = json_decode($data->oder_data); $ecom_settings=LpOption('ecommerce'); ?> <input type="hidden" name="amount" value="<?php echo e($total_am+$ecom_settings->shipping); ?>"> <input type="hidden" name="currency" value="<?php echo e($value->currency); ?>"> <input type="hidden" name="email" value="<?php echo e($value->email); ?>"> <input type="hidden" name="order_id" value="<?php echo e($data->id); ?>"> <input type="hidden" name="method" value="stripe"> <div class="payment_method"> <div class="panel-default"> <label for="payment_defult" data-toggle="collapse" data-target="#collapsedefult" aria-controls="collapsedefult"></label> <div id="collapsedefult" class="collapse one show" data-parent="#accordion"> <div class="card-body1"> <script src="https://js.stripe.com/v3/"></script> <div class=""> <div class="card-name"> <input type="text" name="name_on_card" id="name_on_card" placeholder="Name on Card"> </div> <div id="card-element"> <!-- A Stripe Element will be inserted here. --> </div> <!-- Used to display form errors. --> <div id="card-errors" role="alert"></div> </div> </div> </div> </div> <div class="order_button mt-3"> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo e(__('Close')); ?></button> <button type="submit" class="btn btn-secondary" id="order_button_name"><?php echo e(content('checkout','order_button_name')); ?></button> </div> </form> </div> </div> </div> <input type="hidden" id="stripe_key" value="<?php echo e(env('STRIPE_KEY')); ?>"> <?php $__env->stopSection(); ?> <?php $__env->startPush('js'); ?> <script src="<?php echo e(theme_asset('monkey/public/js/stripe.js')); ?>"></script> <script src="https://www.paypalobjects.com/api/checkout.js"></script> <script> paypal.Button.render({ // Configure environment env: 'production', client: { //sandbox: '<?php echo e(env('PAYPAL_CLIENT_ID')); ?>', production: '<?php echo e(env('PAYPAL_CLIENT_ID')); ?>' }, // Customize button (optional) locale: 'en_US', style: { size: 'medium', color: 'gold', shape: 'pill', }, // Enable Pay Now checkout flow (optional) commit: true, // Set up a payment payment: function(data, actions) { return actions.payment.create({ transactions: [{ amount: { total: '<?php echo e($total_am+$ecom_settings->shipping); ?>', currency: '<?php echo e($value->currency); ?>' } }] }); }, // Execute the payment onAuthorize: function(data, actions) { return actions.payment.execute().then(function() { // // Show a confirmation message to the buyer // window.alert(window.location.origin); $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); var order_id = '<?php echo e($data->id); ?>'; $.ajax({ type: 'POST', url: '<?php echo e(route('payment.store')); ?>', data: {method: 'paypal',order_id: order_id }, dataType: 'html', contentType: false, cache: false, processData:false, success: function(response){ window.history.pushState('', '', '<?php echo e(route('orderconfirm')); ?>'); location.reload(); } }) }); } }, '#paypal-button'); </script> <script> // $("body").on("contextmenu",function(e){ return false; }); $(document).keydown(function(e){ if (e.ctrlKey && (e.keyCode === 67 || e.keyCode === 86 || e.keyCode === 85 || e.keyCode === 117)){ return false; } if(e.which === 123){ return false; } if(e.metaKey){ return false; } //document.onkeydown = function(e) { // "I" key if (e.ctrlKey && e.shiftKey && e.keyCode == 73) { return false; } // "J" key if (e.ctrlKey && e.shiftKey && e.keyCode == 74) { return false; } // "S" key + macOS if (e.keyCode == 83 && (navigator.platform.match("Mac") ? e.metaKey : e.ctrlKey)) { return false; } if (e.keyCode == 224 && (navigator.platform.match("Mac") ? e.metaKey : e.ctrlKey)) { return false; } // "U" key if (e.ctrlKey && e.keyCode == 85) { return false; } // "F12" key if (event.keyCode == 123) { return false; } }); </script> <?php $__env->stopPush(); ?> <?php echo $__env->make('theme::layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/tech/staging.techlup.co.ke/files/script/am-content/Themes/monkey/views/payment/index.blade.php ENDPATH**/ ?>