Apoye a CCHCC hoy!
Champaign County Health Care Consumers es una una organización de acción ciudadana de base. Nos dedicamos a brindar a los consumidores una voz en el sistema de atención médica. Como una pequeña organización sin fines de lucro, dependemos de las donaciones de los miembros de la comunidad para ayudar a apoyar nuestro trabajo.
¡Muestre su apoyo a la justicia social y haga una donación deducible de impuestos hoy!
#wpedon-container-db01960e8839973b02d3769bf574dd7b .wpedon-select,
#wpedon-container-db01960e8839973b02d3769bf574dd7b .wpedon-input {
width: 300px;
min-width: 300px;
max-width: 300px;
}
Donation Amount
jQuery(document).ready(function($){
jQuery('[name="ddm_db01960e8839973b02d3769bf574dd7b"]').on('change', function(){
jQuery('#amount_db01960e8839973b02d3769bf574dd7b').val($(this).val());
jQuery('#price_db01960e8839973b02d3769bf574dd7b').val($(this).val());
});
});
const wpedonPaypalFunding_db01960e8839973b02d3769bf574dd7b = ["paypal"];
#wpedon-paypal-button-container-db01960e8839973b02d3769bf574dd7b > *,
#wpedon-paypal-hosted-fields-container-db01960e8839973b02d3769bf574dd7b .wpedon-paypal-btn,
#wpedon-card-form-db01960e8839973b02d3769bf574dd7b,
form[id="db01960e8839973b02d3769bf574dd7b"] .wpedon-or {
width: 300px;
min-width: 300px;
max-width: 300px;
}
#wpedon-paypal-hosted-fields-container-db01960e8839973b02d3769bf574dd7b .wpedon-paypal-btn {
height: 40px;
}
const message_db01960e8839973b02d3769bf574dd7b = document.getElementById('wpedon-paypal-message-db01960e8839973b02d3769bf574dd7b');
if ( typeof paypal_78142b96af0f5cbfb32c26efd4c280aa === 'undefined' ) {
document.querySelector("#wpedon-card-form-db01960e8839973b02d3769bf574dd7b").style = 'display: none';
message_db01960e8839973b02d3769bf574dd7b.innerHTML = '
An error occurred while connecting PayPal SDK. Check the plugin settings. ';
throw 'An error occurred while connecting PayPal SDK. Check the plugin settings.';
}
paypal_78142b96af0f5cbfb32c26efd4c280aa.getFundingSources().forEach(function (fundingSource) {
if ( wpedonPaypalFunding_db01960e8839973b02d3769bf574dd7b.indexOf(fundingSource) > -1 ) {
const style = {
shape: 'rect',
label: 'donate',
height: 40 };
if ( fundingSource !== 'card' ) {
let color = 'gold';
if (fundingSource === 'venmo' && color === 'gold') {
color = 'blue';
} else if (['ideal', 'bancontact', 'giropay', 'eps', 'sofort', 'mybank', 'p24'].indexOf(fundingSource) > -1 && ['gold', 'blue'].indexOf(color) > -1) {
color = 'default';
} else if (fundingSource === 'credit' && ['darkblue', 'black', 'white'].indexOf(color) === -1) {
color = 'darkblue';
}
style.color = color;
}
const button = paypal_78142b96af0f5cbfb32c26efd4c280aa.Buttons({
fundingSource: fundingSource,
style: style,
createOrder: function() {
message_db01960e8839973b02d3769bf574dd7b.innerHTML = '';
const form = document.getElementById('db01960e8839973b02d3769bf574dd7b');
const formData = new FormData(form);
formData.append('action', 'wpedon-ppcp-order-create');
formData.append('nonce', wpedon.nonce);
formData.append('rand', 'db01960e8839973b02d3769bf574dd7b');
return fetch(wpedon.ajaxUrl, {
method: 'post',
body: formData
}).then(function(response) {
return response.json();
}).then(function(data) {
let orderID = false;
if (data.success && data.data.order_id) {
orderID = data.data.order_id;
} else {
throw data.data && data.data.message ? data.data.message : 'An unknown error occurred while creating the order. Please reload the page and try again.';
}
return orderID;
});
},
onApprove: function(data) {
const formData = new FormData();
formData.append('action', 'wpedon-ppcp-order-finalize');
formData.append('nonce', wpedon.nonce);
formData.append('button_id', '1147');
formData.append('order_id', data.orderID);
return fetch(wpedon.ajaxUrl, {
method: 'post',
body: formData
}).then(function(response) {
return response.json();
}).then(function(data) {
if (data.success) {
var return_url = 'https://www.healthcareconsumers.org/thank-you';
if (return_url.length) {
window.location.href = return_url;
} else {
message_db01960e8839973b02d3769bf574dd7b.innerHTML = '
The donation was successful ';
}
} else {
throw data.data.message;
}
});
},
onCancel: function() {
if (wpedon.cancel.length && fundingSource !== 'card') {
window.location.href = wpedon.cancel;
} else {
message_db01960e8839973b02d3769bf574dd7b.innerHTML = '
Donation Cancelled. ';
}
},
onError: function (error) {
message_db01960e8839973b02d3769bf574dd7b.innerHTML = '
' + (error ? error : 'Site admin , an error was detected in the plugin settings.Please check the PayPal connection and product settings (price, name, etc.)') + ' ';
}
});
if (button.isEligible()) {
button.render('#wpedon-paypal-button-container-db01960e8839973b02d3769bf574dd7b');
}
}
});
Donacion por unica vez!
#wpedon-container-2211110145cb0c192f9c7f659a09c504 .wpedon-select,
#wpedon-container-2211110145cb0c192f9c7f659a09c504 .wpedon-input {
width: 300px;
min-width: 300px;
max-width: 300px;
}
Donation Amount
jQuery(document).ready(function($){
jQuery('[name="ddm_2211110145cb0c192f9c7f659a09c504"]').on('change', function(){
jQuery('#amount_2211110145cb0c192f9c7f659a09c504').val($(this).val());
jQuery('#price_2211110145cb0c192f9c7f659a09c504').val($(this).val());
});
});
const wpedonPaypalFunding_2211110145cb0c192f9c7f659a09c504 = ["paypal"];
#wpedon-paypal-button-container-2211110145cb0c192f9c7f659a09c504 > *,
#wpedon-paypal-hosted-fields-container-2211110145cb0c192f9c7f659a09c504 .wpedon-paypal-btn,
#wpedon-card-form-2211110145cb0c192f9c7f659a09c504,
form[id="2211110145cb0c192f9c7f659a09c504"] .wpedon-or {
width: 300px;
min-width: 300px;
max-width: 300px;
}
#wpedon-paypal-hosted-fields-container-2211110145cb0c192f9c7f659a09c504 .wpedon-paypal-btn {
height: 40px;
}
const message_2211110145cb0c192f9c7f659a09c504 = document.getElementById('wpedon-paypal-message-2211110145cb0c192f9c7f659a09c504');
if ( typeof paypal_78142b96af0f5cbfb32c26efd4c280aa === 'undefined' ) {
document.querySelector("#wpedon-card-form-2211110145cb0c192f9c7f659a09c504").style = 'display: none';
message_2211110145cb0c192f9c7f659a09c504.innerHTML = '
An error occurred while connecting PayPal SDK. Check the plugin settings. ';
throw 'An error occurred while connecting PayPal SDK. Check the plugin settings.';
}
paypal_78142b96af0f5cbfb32c26efd4c280aa.getFundingSources().forEach(function (fundingSource) {
if ( wpedonPaypalFunding_2211110145cb0c192f9c7f659a09c504.indexOf(fundingSource) > -1 ) {
const style = {
shape: 'rect',
label: 'donate',
height: 40 };
if ( fundingSource !== 'card' ) {
let color = 'gold';
if (fundingSource === 'venmo' && color === 'gold') {
color = 'blue';
} else if (['ideal', 'bancontact', 'giropay', 'eps', 'sofort', 'mybank', 'p24'].indexOf(fundingSource) > -1 && ['gold', 'blue'].indexOf(color) > -1) {
color = 'default';
} else if (fundingSource === 'credit' && ['darkblue', 'black', 'white'].indexOf(color) === -1) {
color = 'darkblue';
}
style.color = color;
}
const button = paypal_78142b96af0f5cbfb32c26efd4c280aa.Buttons({
fundingSource: fundingSource,
style: style,
createOrder: function() {
message_2211110145cb0c192f9c7f659a09c504.innerHTML = '';
const form = document.getElementById('2211110145cb0c192f9c7f659a09c504');
const formData = new FormData(form);
formData.append('action', 'wpedon-ppcp-order-create');
formData.append('nonce', wpedon.nonce);
formData.append('rand', '2211110145cb0c192f9c7f659a09c504');
return fetch(wpedon.ajaxUrl, {
method: 'post',
body: formData
}).then(function(response) {
return response.json();
}).then(function(data) {
let orderID = false;
if (data.success && data.data.order_id) {
orderID = data.data.order_id;
} else {
throw data.data && data.data.message ? data.data.message : 'An unknown error occurred while creating the order. Please reload the page and try again.';
}
return orderID;
});
},
onApprove: function(data) {
const formData = new FormData();
formData.append('action', 'wpedon-ppcp-order-finalize');
formData.append('nonce', wpedon.nonce);
formData.append('button_id', '1155');
formData.append('order_id', data.orderID);
return fetch(wpedon.ajaxUrl, {
method: 'post',
body: formData
}).then(function(response) {
return response.json();
}).then(function(data) {
if (data.success) {
var return_url = 'https://www.healthcareconsumers.org/thank-you';
if (return_url.length) {
window.location.href = return_url;
} else {
message_2211110145cb0c192f9c7f659a09c504.innerHTML = '
The donation was successful ';
}
} else {
throw data.data.message;
}
});
},
onCancel: function() {
if (wpedon.cancel.length && fundingSource !== 'card') {
window.location.href = wpedon.cancel;
} else {
message_2211110145cb0c192f9c7f659a09c504.innerHTML = '
Donation Cancelled. ';
}
},
onError: function (error) {
message_2211110145cb0c192f9c7f659a09c504.innerHTML = '
' + (error ? error : 'Site admin , an error was detected in the plugin settings.Please check the PayPal connection and product settings (price, name, etc.)') + ' ';
}
});
if (button.isEligible()) {
button.render('#wpedon-paypal-button-container-2211110145cb0c192f9c7f659a09c504');
}
}
});
Donación mensual para ayudar a CCHCC!
[1]