success: function (response) {

    // 1. Save order ID globally for modal actions
    window.LAST_ORDER_ID = response.order_id;

    // 2. Show modal
    let modal = new bootstrap.Modal(document.getElementById("receiptActionModal"));
    modal.show();
},
