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

Function getStripeLib

app/lib/stripeUtil.js:5–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { createPaymentSession } from '../core/api/payment-session'
4
5async function getStripeLib () {
6 const isProd = application.isProduction()
7 const STRIPE_PUBLISHABLE_KEY = isProd ? 'pk_live_27jQZozjDGN1HSUTnSuM578g' : 'pk_test_BqKtc6bIKPn6FeSA4GhuRrwT'
8 return loadStripe(STRIPE_PUBLISHABLE_KEY)
9}
10
11async function handleHomeSubscription (product, couponId, { purchasingForId = null } = {}) {
12 const productId = product.get('_id')

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected