mirror of
https://github.com/xtr-dev/payload-billing.git
synced 2025-12-10 02:43:24 +00:00
Add GET /api/payload-billing/test/config endpoint to retrieve test provider configuration including scenarios, payment methods, and test mode indicators. This allows custom UIs to dynamically sync with plugin configuration instead of hardcoding values. - Add TestProviderConfigResponse interface - Export new type in provider index and main index - Endpoint returns enabled status, scenarios, methods, test mode indicators, default delay, and custom UI route Resolves #22 Co-authored-by: Bas <bvdaakster@users.noreply.github.com>
11 lines
403 B
TypeScript
11 lines
403 B
TypeScript
export * from './mollie'
|
|
export * from './stripe'
|
|
export * from './test'
|
|
export * from './types'
|
|
export * from './currency'
|
|
|
|
// Re-export provider configurations and types
|
|
export type { StripeProviderConfig } from './stripe'
|
|
export type { MollieProviderConfig } from './mollie'
|
|
export type { TestProviderConfig, TestProviderConfigResponse, PaymentOutcome, PaymentMethod, PaymentScenario } from './test'
|