Skip to content

Instantly share code, notes, and snippets.

@andrewpthorp
Created December 3, 2013 21:32
Show Gist options
  • Save andrewpthorp/7777829 to your computer and use it in GitHub Desktop.
Save andrewpthorp/7777829 to your computer and use it in GitHub Desktop.
Stripe configuration for closed event.
<script>
var handler = StripeCheckout.configure({
key: 'pk_your_public_key',
token: function(token, args) {
// Use the token to create the charge with a server-side script.
},
closed: function(e) {
// The popup was closed.
}
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment