Atex Environmental Group

Atex Environmental Group Based out of Andrews, TX, AEG was founded on the basis of making everyone's lives as easy as possible when it comes to environmental work.

Whether it's COVID-19 decontamination or dealing with larger jobs in the oil and gas industry, we do our very best.

">Please enter a description
USD
Please enter a price

Please enter an Invoice ID




function initPayPalButton() {
var description = document.querySelector(' -button-container ');
var amount = document.querySelector(' -button-container ');
var descriptionError = document.querySelector(' -button-container ');
var priceError = document.querySelector(' -button-container ');
var invoiceid = document.querySelector(' -button-container ');
var invoiceidError = document.querySelector(' -button-container ');
var invoiceidDiv = document.querySelector(' -button-container ');

var elArr = [description, amount];

if (invoiceidDiv.firstChild.innerHTML.length > 1) {
invoiceidDiv.style.display = "block";
}

var purchase_units = [];
purchase_units[0] = {};
purchase_units[0].amount = {};

function validate(event) {
return event.value.length > 0;
}

paypal.Buttons({
style: {
color: 'gold',
shape: 'rect',
label: 'paypal',
layout: 'vertical',

},

onInit: function (data, actions) {
actions.disable();

if(invoiceidDiv.style.display === "block") {
elArr.push(invoiceid);
}

elArr.forEach(function (item) {
item.addEventListener('keyup', function (event) {
var result = elArr.every(validate);
if (result) {
actions.enable();
} else {
actions.disable();
}
});
});
},

onClick: function () {
if (description.value.length < 1) {
descriptionError.style.visibility = "visible";
} else {
descriptionError.style.visibility = "hidden";
}

if (amount.value.length < 1) {
priceError.style.visibility = "visible";
} else {
priceError.style.visibility = "hidden";
}

if (invoiceid.value.length < 1 && invoiceidDiv.style.display === "block") {
invoiceidError.style.visibility = "visible";
} else {
invoiceidError.style.visibility = "hidden";
}

purchase_units[0].description = description.value;
purchase_units[0].amount.value = amount.value;

if(invoiceid.value !== '') {
purchase_units[0].invoice_id = invoiceid.value;
}
},

createOrder: function (data, actions) {
return actions.order.create({
purchase_units: purchase_units,
});
},

onApprove: function (data, actions) {
return actions.order.capture().then(function (orderData) {

// Full available details
console.log('Capture result', orderData, JSON.stringify(orderData, null, 2));

// Show a success message within this page, e.g. const element = document.getElementById('paypal-button-container');
element.innerHTML = '';
element.innerHTML = 'Thank you for your payment!';

// Or go to another URL: actions.redirect('thank_you.html');

});
},

onError: function (err) {
console.log(err);
}
}).render(' -button-container');
}
initPayPalButton();

Address

111 West Broadway
Andrews, TX
79714

Alerts

Be the first to know and let us send you an email when Atex Environmental Group posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Contact The Business

Send a message to Atex Environmental Group:

Share