Skip to content

Instantly share code, notes, and snippets.

@salsalabs
Last active August 29, 2015 14:02
Show Gist options
  • Save salsalabs/67c33204ac9acb71ead9 to your computer and use it in GitHub Desktop.
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.
<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