mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-24 19:59:53 -04:00
🐛Fix /courses/purchase purchase amount
This commit is contained in:
parent
66f434adba
commit
01f6e098a1
1 changed files with 2 additions and 2 deletions
|
@ -78,9 +78,9 @@ module.exports = class PurchaseCoursesView extends RootView
|
||||||
|
|
||||||
# Show Stripe handler
|
# Show Stripe handler
|
||||||
application.tracker?.trackEvent 'Started course prepaid purchase', {
|
application.tracker?.trackEvent 'Started course prepaid purchase', {
|
||||||
price: @pricePerStudent, students: @pricePerStudent}
|
price: @pricePerStudent, students: @numberOfStudents}
|
||||||
stripeHandler.open
|
stripeHandler.open
|
||||||
amount: @price
|
amount: @numberOfStudents * @pricePerStudent * 100
|
||||||
description: "Full course access for #{@numberOfStudents} students"
|
description: "Full course access for #{@numberOfStudents} students"
|
||||||
bitcoin: true
|
bitcoin: true
|
||||||
alipay: if me.get('country') is 'china' or (me.get('preferredLanguage') or 'en-US')[...2] is 'zh' then true else 'auto'
|
alipay: if me.get('country') is 'china' or (me.get('preferredLanguage') or 'en-US')[...2] is 'zh' then true else 'auto'
|
||||||
|
|
Loading…
Add table
Reference in a new issue