mirror of
https://github.com/xtr-dev/payload-billing.git
synced 2025-12-10 02:43:24 +00:00
- Introduce `mollieProvider` for handling Mollie payments - Add configurable payment hooks for initialization and processing - Implement `initPayment` logic to create Mollie payments and update metadata - Include types for Mollie integration in payments and refunds - Update `package.json` to include `@mollie/api-client` dependency - Refactor existing payment-related types into modular files for better maintainability
15 lines
343 B
TypeScript
15 lines
343 B
TypeScript
import configPromise from '@payload-config'
|
|
import { getPayload } from 'payload'
|
|
import { useBillingPlugin } from '../../../src/plugin'
|
|
|
|
export const GET = async (request: Request) => {
|
|
const payload = await getPayload({
|
|
config: configPromise,
|
|
})
|
|
|
|
|
|
return Response.json({
|
|
message: 'This is an example of a custom route.',
|
|
})
|
|
}
|