mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-09 01:18:18 +00:00
feat: ( payment ) create payment microservice
This commit is contained in:
50
packages/payment-providers/src/index.ts
Normal file
50
packages/payment-providers/src/index.ts
Normal file
@@ -0,0 +1,50 @@
|
||||
// Re-export the shared, ORM-agnostic payment contract from @edr/types so consumers can
|
||||
// import enums, interfaces, and providers from a single entry point.
|
||||
export {
|
||||
ProviderPaymentStatus,
|
||||
ProviderMethod,
|
||||
} from '@edr/types';
|
||||
export type {
|
||||
PaymentProvider,
|
||||
ProviderInitiationInput,
|
||||
ProviderInitiationResult,
|
||||
ProviderStatus,
|
||||
ClientAction,
|
||||
PaymentPlatform,
|
||||
} from '@edr/types';
|
||||
|
||||
// Providers
|
||||
export { TelebirrProvider } from './providers/telebirr/telebirr.provider';
|
||||
export { CbeBirrProvider } from './providers/cbe-birr/cbe-birr.provider';
|
||||
export { EBirrProvider } from './providers/ebirr/ebirr.provider';
|
||||
export { CardProvider } from './providers/card/card.provider';
|
||||
export { WaafiProvider } from './providers/waafi/waafi.provider';
|
||||
|
||||
// Telebirr crypto + types (exported for apps that build/verify signatures directly)
|
||||
export {
|
||||
buildCanonicalString,
|
||||
signRequestObject,
|
||||
verifyRequestObject,
|
||||
signString,
|
||||
verifySignature,
|
||||
createTimestamp,
|
||||
createNonceStr,
|
||||
createMerchantOrderId,
|
||||
} from './providers/telebirr/telebirr.crypto';
|
||||
export type {
|
||||
FabricTokenResponse,
|
||||
CreateOrderRequest,
|
||||
CreateOrderResponse,
|
||||
QueryOrderResponse,
|
||||
TelebirrTradeStatus,
|
||||
} from './providers/telebirr/telebirr.types';
|
||||
|
||||
// Webhook payload types
|
||||
export type { TelebirrWebhookPayload } from './webhooks/telebirr-webhook.types';
|
||||
export type { CbeBirrWebhookPayload } from './webhooks/cbe-birr-webhook.types';
|
||||
export type { EBirrWebhookPayload } from './webhooks/ebirr-webhook.types';
|
||||
export type { CardWebhookPayload } from './webhooks/card-webhook.types';
|
||||
export type { WaafiWebhookPayload } from './webhooks/waafi-webhook.types';
|
||||
|
||||
// DI token for injecting all providers as an array (future multi-provider wiring)
|
||||
export const PAYMENT_PROVIDERS = Symbol('PAYMENT_PROVIDERS');
|
||||
Reference in New Issue
Block a user