()
| 3 | import { createPaymentSession } from '../core/api/payment-session' |
| 4 | |
| 5 | async 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 | |
| 11 | async function handleHomeSubscription (product, couponId, { purchasingForId = null } = {}) { |
| 12 | const productId = product.get('_id') |
no outgoing calls
no test coverage detected