A TypeScript client for the iyzipay API.
Note: Project doesn't cover all scenarios, only covers some subscription functionalities.
- Request Interception: Custom interceptors for modifying and handling outgoing requests.
- Header Generation: Dynamic header generation strategies for different versions.
- Utility Functions: Common utilities for request handling and header generation.
src
├── constants.ts
├── interceptors
│ └── iyzicoRequestInterceptor.ts
├── index.ts
├── utils
│ ├── headerGenerator
│ │ ├── IyzicoHeaderGenerator.ts
│ │ ├── IyzicoHeaderGenerator.types.ts
│ │ ├── strategies
│ │ │ ├── v1.ts
│ │ │ └── v2.ts
│ └── utils.ts
Contains constant values used across the project.
The entry point of the application, initializing and running the core functionalities.
Defines an interceptor to handle and modify Iyzico API requests.
Contains utility functions that are commonly used throughout the project.
Implements the logic for generating authorization headers required by Iyzico.
Defines types and interfaces used by the header generator.
Implements version 1 strategy for header generation.
Implements version 2 strategy for header generation.
To set up the project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/centrual/iyzico-iyzipay-client.git cd iyzico-iyzipay-client
-
Install dependencies:
yarn install
yarn compile
yarn lint
yarn fix
yarn test
- Fork the repository
- Create a new branch (
git checkout -b feature-branch
) - Make your changes
- Commit your changes (
git commit -m 'Add some feature'
) - Push to the branch (
git push origin feature-branch
) - Open a pull request
This project is licensed under the MIT License.
{'name': 'Oğuz Özcan', 'email': 'oguz.ozcan@vennyx.com', 'url': 'https://github.com/centrual'}