Enabled Alipay support. Updated to latest version of Stripe checkout.js.

This commit is contained in:
Nick Winter 2015-03-16 10:50:15 -07:00
parent bb7c232455
commit d6cba0de67
5 changed files with 14 additions and 3 deletions

View file

@ -52,6 +52,9 @@ module.exports = class InvoicesView extends RootView
stripeHandler.open
amount: @amount
description: @description
bitcoin: true
alipay: "auto"
locale: "auto"
onStripeReceivedToken: (e) ->
data = {

View file

@ -194,6 +194,9 @@ class RecipientSubs
options = {
description: "#{@recipientEmails.length} " + $.i18n.t('subscribe.stripe_description', defaultValue: 'Monthly Subscriptions')
amount: amount
alipay: "auto"
locale: "auto"
alipayReusable: true
}
@state = 'start subscribe'
@stateMessage = ''

View file

@ -112,6 +112,9 @@ module.exports = class SubscribeModal extends ModalView
options = {
description: $.i18n.t('subscribe.stripe_description')
amount: @product.amount
alipay: "auto"
locale: "auto"
alipayReusable: true
}
# SALE LOGIC

View file

@ -70,6 +70,8 @@ module.exports = class BuyGemsModal extends ModalView
description: $.t(product.i18n)
amount: product.amount
bitcoin: true
alipay: "auto"
locale: "auto"
})
@productBeingPurchased = product

File diff suppressed because one or more lines are too long