mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 15:48:11 -05:00
Enabled Alipay support. Updated to latest version of Stripe checkout.js.
This commit is contained in:
parent
bb7c232455
commit
d6cba0de67
5 changed files with 14 additions and 3 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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 = ''
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
6
vendor/scripts/checkout.js
vendored
6
vendor/scripts/checkout.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue