Install widget
Last updated
Last updated
<script async src="https://widget.changeup.com/changeup-donate-checkout.js"></script>
<script>
// listen for widget actions here
document.addEventListener('changeup-donate-checkout', function(event) {
console.log('widgetState', event?.detail)
/* Widget state
{
"donateOpt": true, // whether they are opt-in or opt-out of the donation
"causeId": "a051d439-8f97-471b-ab50-09...", // the id of the cause/charity that is selected
"supersized": false, // whether supersized has been selected or not
"userDonationAmount": .42, // what the user donation amount calculates to
"partnerDonationAmount": 0 // what the partner donation calculates to
}
*/
});
</script>
<!-- widget embedded here -->
<div
data-island="changeup-donate-checkout"
data-subtotal="$10.58"
data-widget="2909be56-a106-42d5-9dd2-02a...."
data-client="Client ID Here">
</div>