Created
October 14, 2011 22:27
-
-
Save npverni/1288540 to your computer and use it in GitHub Desktop.
Chargify - Hosted Page 'Purchase Summary' refresh callback
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| 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