⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.67
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
ctaacademy
/
www
/
public
/
frontend
/
js
/
default
/
View File Name :
checkout.js
"use strict"; /** On DOM load */ $(document).ready(function () { //place order $(document).on("click", ".place-order-btn", function (e) { e.preventDefault(); const method = $(this).data("method"); $.ajax({ url: `${base_url}/place-order/${method}`, type: "POST", dataType: "json", data: { _token: $('meta[name="csrf-token"]').attr("content"), }, beforeSend: function () { $("#show_currency_notifications .alert-warning").addClass( "d-none" ); $(".preloader-two").removeClass("d-none"); }, success: (response) => { if (response.success) { window.location.href = `${base_url}/payment?invoice_id=${response.invoice_id}`; } else { if (response.supportCurrency) { $("#show_currency_notifications .alert-warning") .html(response.supportCurrency) .removeClass("d-none"); } toastr.warning(response.messege); $(".preloader-two").addClass("d-none"); } }, error: (error) => { const errorMessage = error.responseJSON?.message || basic_error_message; toastr.error(errorMessage); $(".preloader-two").addClass("d-none"); }, }); }); });