import type { CheckoutEndpoint } from '.'; const getCheckout: CheckoutEndpoint['handlers']['getCheckout'] = async ({ req: _request, res: response, config: _config }) => { try { const html = ` Checkout

Checkout not yet implemented :(

See #64

`; response.status(200); response.setHeader('Content-Type', 'text/html'); response.write(html); response.end(); } catch (error) { console.error(error); const message = 'An unexpected error ocurred'; response.status(500).json({ data: null, errors: [{ message }] }); } }; export default getCheckout;