TypeScript type definitions for Credo payment integration.
This package provides strict, reusable type definitions to help developers integrate Credo payments with better type safety and IntelliSense support.
Check out the Official Credo Payment Integration Docs.
- Strongly typed payloads for Credo payment initialization
- Support for FeeBearer, Currency, PaymentChannel, and metadata structures
- Works with any TypeScript-based project
- Lightweight – no runtime code, types only
Install as a dev dependency:
npm install -D credo-types
or using Yarn:
yarn add -D credo-types
-
CredoPaymentInitializationPayload
– Main payload structure for payment requests. -
FeeBearer
– Who pays the transaction fee (Customer or Merchant). -
Currency
– Supported currencies (NGN, USD). -
PaymentChannel
– Supported payment channels. -
MetaData
,SplitConfiguration
, etc.
- Avoid guesswork when building payloads
- Get IntelliSense in VSCode and other editors
- Minimize runtime errors caused by incorrect payloads
Contributions are welcome! If you notice missing fields or updates in Credo's API, please open a PR or create an issue.
MIT License. Use freely in personal and commercial projects.