MCPcopy Index your code
hub / github.com/OpenPipe/OpenPipe / usdToCents

Function usdToCents

app/src/server/utils/stripe.ts:86–89  ·  view source on GitHub ↗
(usd: number | Decimal)

Source from the content-addressed store, hash-verified

84}
85
86export function usdToCents(usd: number | Decimal) {
87 const cents = Math.round(Number(usd) * 100);
88 return cents >= 0 ? cents : 0;
89}
90
91export async function createStripeCustomerAndConnectItToProject(projectId: string) {
92 // Find a project

Callers 1

chargeInvoiceFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected