Skip to content

Instantly share code, notes, and snippets.

@npverni
Created October 14, 2011 22:27
Show Gist options
  • Select an option

  • Save npverni/1288540 to your computer and use it in GitHub Desktop.

Select an option

Save npverni/1288540 to your computer and use it in GitHub Desktop.
Chargify - Hosted Page 'Purchase Summary' refresh callback
/*
The 'Purchase Summary' section of the hosted page gets periodically updated via Ajax
when the user:
1) Loads the page
2) Validates a Coupon
3) Validates a VAT number
4) Selects billing/shipping state/country (for tax purposes)
Add this to the 'Custom JavaScript' section of your hosted page settings to respond to this event.
*/
$(document).bind('afterSummaryRefresh', function() {
alert('foo');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment