MCPcopy Create free account
hub / github.com/codecombat/codecombat / stripeOptions

Method stripeOptions

app/views/core/SubscribeModal.js:148–153  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

146 }
147
148 stripeOptions (options) {
149 return _.assign({
150 alipay: (me.get('country') === 'china') || ((me.get('preferredLanguage') || 'en-US').slice(0, 2) === 'zh') ? true : 'auto',
151 alipayReusable: true
152 }, options)
153 }
154
155 onClickPurchaseButton (e) {
156 if (!this.basicProduct) { return }

Calls 1

getMethod · 0.45

Tested by

no test coverage detected