https://github.com/cynegeirus/dotnet-shopinext
ShopinextDotNet is a lightweight .NET 9 SDK and API wrapper built to integrate with the Shopinext Payment API. This project provides a clean and extensible way to authenticate, initiate and manage payment transactions via Shopinext using a simple HTTP-based API approach.
https://github.com/cynegeirus/dotnet-shopinext
payment payment-api payment-service payments shopinext
Last synced: about 2 months ago
JSON representation
ShopinextDotNet is a lightweight .NET 9 SDK and API wrapper built to integrate with the Shopinext Payment API. This project provides a clean and extensible way to authenticate, initiate and manage payment transactions via Shopinext using a simple HTTP-based API approach.
- Host: GitHub
- URL: https://github.com/cynegeirus/dotnet-shopinext
- Owner: cynegeirus
- License: mit
- Created: 2025-07-28T11:28:24.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-07-28T11:40:03.000Z (2 months ago)
- Last Synced: 2025-07-28T13:26:01.268Z (2 months ago)
- Topics: payment, payment-api, payment-service, payments, shopinext
- Language: C#
- Homepage:
- Size: 161 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Shopinext .NET
**ShopinextDotNet** is a lightweight .NET 9 SDK and API wrapper built to integrate with the [Shopinext Payment API](https://api.shopinext.com/).
This project provides a clean and extensible way to authenticate, initiate and manage payment transactions via Shopinext using a simple HTTP-based API approach.## ๐ Features
- โ Token-based authentication with Shopinext API
- ๐ณ Create payment transactions easily
- ๐ Fully async and extendable
- โ๏ธ Environment configuration (Production / Sandbox)
- ๐งช Built-in support for request/response DTOs## ๐ง Technologies Used
- .NET 9
- ASP.NET Core Web API
- RESTful design
- JSON-based serialization
- Clean architecture and modular services## ๐ฆ Installation
To get started:
```bash
git clone https://github.com/cynegeirus/dotnet-shopinext.git
cd dotnet-shopinext
dotnet build
````> Make sure you have a valid Shopinext `ClientId` and `ClientSecret` from your Shopinext developer account.
### Code Snippet:
```csharp
[HttpGet("Send")]
public async Task Send([FromBody] PaymentRequest request)
{
var service = new BaseService(EnvironmentType.Production);var authenticateResponse = await service.PostAsync("/authenticate", new AuthenticateRequest
{
ClientId = service.ApiClientId,
ClientSecret = service.ApiClientSecret
});service.SetAuthorization(authenticateResponse.Data?.AccessToken);
var paymentResponse = await service.PostAsync("/createPayment", request);
return paymentResponse.Success ? Ok(paymentResponse.Data) : BadRequest(paymentResponse.Message);
}
```
## ๐ Authentication Flow1. Call `/authenticate` with your `ClientId` and `ClientSecret`.
2. Use the returned access token to authorize further requests.
3. Initiate payment via `/createPayment`.## ๐ API Reference
You can explore the official Shopinext API here:
๐ [https://api.shopinext.com/](https://api.shopinext.com/)---
## ๐ License
This project is licensed under the [MIT License](LICENSE). See the license file for details.
---
## ๐ Issues, Feature Requests or Support
Please use the Issue > New Issue button to submit issues, feature requests or support issues directly to me. You can also send an e-mail to akin.bicer@outlook.com.tr.