/* eslint-disable */ import { Controller, Res, Get } from '@nestjs/common'; import { PluginCommonModule, VendurePlugin } from '@vendure/core'; import { Response } from 'express'; import { clientSecret } from './stripe-dev-server'; /** * This test controller returns the Stripe intent checkout page * with the client secret generated by the dev-server */ @Controller() export class StripeTestCheckoutController { @Get('checkout') async webhook(@Res() res: Response): Promise { res.send(` Checkout
`); } } /** * Test plugin for serving the Stripe intent checkout page */ @VendurePlugin({ imports: [PluginCommonModule], controllers: [StripeTestCheckoutController], }) export class StripeCheckoutTestPlugin {}