A .NET-based payment processing system integrated with PayTR payment gateway, built with modern technologies and best practices.
- .NET 9.0
- ASP.NET Core Web API
- Entity Framework Core
- PostgreSQL
- Serilog for logging
- PayTR Payment Gateway Integration
- .NET 9.0 SDK
- PostgreSQL Database
- IDE (Visual Studio 2022 or VS Code recommended)
- PayTR Merchant Account and API Credentials
src/
├── YazilimAcademyPayments.WebApi/
├── Controllers/ # API endpoints
├── Domain/ # Business logic and entities
│ ├── Common/ # Shared components
│ ├── Entities/ # Domain entities
│ ├── Enums/ # Enumeration types
│ └── ValueObjects/ # Value objects
├── Persistence/ # Data access layer
└── Properties/ # Application properties
- Clone the repository
git clone https://github.com/yazilimacademy/YazilimAcademyPayments
- Navigate to the project directory
cd YazilimAcademyPayments/src/YazilimAcademyPayments.WebApi
- Install dependencies
dotnet restore
-
Update the database connection string in
appsettings.json
-
Configure PayTR credentials in
appsettings.json
:
{
"PayTR": {
"MerchantId": "your-merchant-id",
"ApiKey": "your-api-key",
"ApiSecret": "your-api-secret"
}
}
- Run the application
dotnet run
- Secure payment processing through PayTR gateway
- Support for various payment methods (Credit Card, Bank Transfer)
- Real-time payment status tracking
- Entity management
- Structured domain model
- PostgreSQL database integration
- Comprehensive logging with Serilog
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.