Skip to content

Instantly share code, notes, and snippets.

@andyt
Created March 10, 2015 15:28
Show Gist options
  • Save andyt/2e237c4a3fe44bab7abc to your computer and use it in GitHub Desktop.
Save andyt/2e237c4a3fe44bab7abc to your computer and use it in GitHub Desktop.
Stub a Stripe API error response
Stripe.card.createToken = function(form, handler){ handler(200, { error: { type: 'api_error', message: '**TEST** There was a problem with the Stripe API' } }) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment