.NET Core
🛠️ Setup Instructions
Extract and Open Project
Extract the contents of the Zip file. Open the folder containing the contents and double-click to open the Visual Studio solution file HesabeDotNetCore.sln
.
Configure Credentials
Once the project is loaded, go to the HesabeConstants.cs
file and update the following parameter values using the values from your admin panel:
string ACCESS_CODE = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
string MERCHANT_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
string MERCHANT_IV = "xxxxxxxxxxxxxxxx";
string MERCHANT_CODE = "1234567890123";
Configure Response URLs
Change the following values according to the URLs defined in your application:
string RESPONSE_URL = "https://yourdomain.com/PaymentResponse";
string FAILURE_URL = "https://yourdomain.com/PaymentFailure";
🔧 Main Components
There are 4 main components in the .NET Core integration:
HesabeConstants.cs
Configure your credentials here. This is where you'll set up all your merchant credentials and API endpoints.
HesabeApiHelper.cs
This helper makes POST API calls to the checkout endpoint in order to retrieve the payment token for processing transactions.
HesabeCrypt.cs
The encryption and decryption library which encrypts your payment data before making API calls or posting to payment URLs. It also handles decrypting responses.
Class Models
These are the models which define your request and response data structures for seamless data handling.
📥 Download Kit & Support
🎯 Integration Overview
Ready to Integrate
Once the credential values are updated, you're done with the configuration part. The .NET Core kit provides a complete solution with all necessary components for seamless Hesabe Payment Gateway integration. Simply configure your credentials, update the response URLs, and you're ready to start processing payments.