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

Function getDisplayUnitPrice

app/views/payment/paymentPriceHelper.js:3–5  ·  view source on GitHub ↗
(unitAmount)

Source from the content-addressed store, hash-verified

1import { handleCheckoutSessionHelper } from '../../lib/stripeUtil'
2
3function getDisplayUnitPrice (unitAmount) {
4 return unitAmount / 100
5}
6
7function getDisplayCurrency (currency) {
8 return currency === 'usd' ? '$' : currency

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected