manifold/web/lib/service/stripe.ts

13 lines
339 B
TypeScript
Raw Permalink Normal View History

import { getFunctionUrl } from 'common/api'
export const checkoutURL = (
userId: string,
manticDollarQuantity: number,
referer = ''
) => {
const endpoint = getFunctionUrl('createcheckoutsession')
return `${endpoint}?userId=${userId}&manticDollarQuantity=${manticDollarQuantity}&referer=${encodeURIComponent(
referer
)}`
}