Last active
August 29, 2015 14:02
-
-
Save salsalabs/67c33204ac9acb71ead9 to your computer and use it in GitHub Desktop.
Script to remove Amex and Discover from the list of valid credit cards for events with fees.
This file contains 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
<script type="text/javsacript"> | |
// See: https://salsasupport.zendesk.com/entries/44958284 | |
$(document).ready(function() { | |
if (/checkout\.sjs\?event_KEY=\d+/.test(window.location.href)) { | |
$('option[value="amex"]').remove(); | |
$('option[value="disc"]').remove(); | |
} | |
}) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment