codecombat/app/core/services/stripe.coffee

12 lines
434 B
CoffeeScript
Raw Normal View History

publishableKey = if application.isProduction() then 'pk_live_27jQZozjDGN1HSUTnSuM578g' else 'pk_test_zG5UwVu6Ww8YhtE9ZYh0JO6a'
2015-03-18 20:17:30 -04:00
module.exports = handler = StripeCheckout.configure({
key: publishableKey
name: 'CodeCombat'
email: me.get('email')
image: "https://codecombat.com/images/pages/base/logo_square_250.png"
token: (token) ->
Backbone.Mediator.publish 'stripe:received-token', { token: token }
2015-03-18 20:17:30 -04:00
locale: 'auto'
})