@unchainedshop/plugins
Version:
Because of a Typescript issue with upstream "postfinancecheckout", the Postfinance plugin has been disabled from transpilation, import the source ts files from src and enable node_module tsc or copy over the src/payment/postfinance-checkout to your projec
13 lines (9 loc) • 443 B
text/typescript
import { UnchainedCore } from '@unchainedshop/core';
import express from 'express';
import handler from '../payment/cryptopay/handler-express.js';
import { configureExportToken } from '../worker/export-token.js';
const { CRYPTOPAY_WEBHOOK_PATH = '/payment/cryptopay' } = process.env;
export default (app, unchainedAPI: UnchainedCore) => {
app.use(CRYPTOPAY_WEBHOOK_PATH, express.json(), handler);
configureExportToken(unchainedAPI);
};