mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -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
|
stripeHandler.open
|
||||||
amount: @amount
|
amount: @amount
|
||||||
description: @description
|
description: @description
|
||||||
|
bitcoin: true
|
||||||
|
alipay: "auto"
|
||||||
|
locale: "auto"
|
||||||
|
|
||||||
onStripeReceivedToken: (e) ->
|
onStripeReceivedToken: (e) ->
|
||||||
data = {
|
data = {
|
||||||
|
|
|
@ -194,6 +194,9 @@ class RecipientSubs
|
||||||
options = {
|
options = {
|
||||||
description: "#{@recipientEmails.length} " + $.i18n.t('subscribe.stripe_description', defaultValue: 'Monthly Subscriptions')
|
description: "#{@recipientEmails.length} " + $.i18n.t('subscribe.stripe_description', defaultValue: 'Monthly Subscriptions')
|
||||||
amount: amount
|
amount: amount
|
||||||
|
alipay: "auto"
|
||||||
|
locale: "auto"
|
||||||
|
alipayReusable: true
|
||||||
}
|
}
|
||||||
@state = 'start subscribe'
|
@state = 'start subscribe'
|
||||||
@stateMessage = ''
|
@stateMessage = ''
|
||||||
|
|
|
@ -112,6 +112,9 @@ module.exports = class SubscribeModal extends ModalView
|
||||||
options = {
|
options = {
|
||||||
description: $.i18n.t('subscribe.stripe_description')
|
description: $.i18n.t('subscribe.stripe_description')
|
||||||
amount: @product.amount
|
amount: @product.amount
|
||||||
|
alipay: "auto"
|
||||||
|
locale: "auto"
|
||||||
|
alipayReusable: true
|
||||||
}
|
}
|
||||||
|
|
||||||
# SALE LOGIC
|
# SALE LOGIC
|
||||||
|
|
|
@ -70,6 +70,8 @@ module.exports = class BuyGemsModal extends ModalView
|
||||||
description: $.t(product.i18n)
|
description: $.t(product.i18n)
|
||||||
amount: product.amount
|
amount: product.amount
|
||||||
bitcoin: true
|
bitcoin: true
|
||||||
|
alipay: "auto"
|
||||||
|
locale: "auto"
|
||||||
})
|
})
|
||||||
|
|
||||||
@productBeingPurchased = product
|
@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