cashfree-dotnet-pg
6.0.7
dotnet add package cashfree-dotnet-pg --version 6.0.7
NuGet\Install-Package cashfree-dotnet-pg -Version 6.0.7
<PackageReference Include="cashfree-dotnet-pg" Version="6.0.7" />
<PackageVersion Include="cashfree-dotnet-pg" Version="6.0.7" />
<PackageReference Include="cashfree-dotnet-pg" />
paket add cashfree-dotnet-pg --version 6.0.7
#r "nuget: cashfree-dotnet-pg, 6.0.7"
#:package cashfree-dotnet-pg@6.0.7
#addin nuget:?package=cashfree-dotnet-pg&version=6.0.7
#tool nuget:?package=cashfree-dotnet-pg&version=6.0.7
Cashfree PG .Net SDK
The Cashfree PG .Net SDK offers a convenient solution to access Cashfree PG APIs from a server-side .Net applications.
Documentation
Cashfree's PG API Documentation - https://docs.cashfree.com/reference/pg-new-apis-endpoint
Learn and understand payment gateway workflows at Cashfree Payments here
Try out our interactive guides at Cashfree Dev Studio !
Getting Started
Installation
dotnet add package cashfree-dotnet-pg
Configuration
Version >= 5
using cashfree_pg.Client;
using cashfree_pg.Model;
var cashfree = new Cashfree(Cashfree.SANDBOX, "<x-client-id>", "<x-client-secret>", null, null, null, null);
Generate your API keys (x-client-id , x-client-secret) from Cashfree Merchant Dashboard
Basic Usage
Create Order
var customerDetails = new CustomerDetails("walterwNrcMi", null, "9999999999");
var createOrdersRequest = new CreateOrderRequest(null, 1.0, "INR", customerDetails);
try {
// Create Order
var result = cashfree.PGCreateOrder(createOrdersRequest, null, null, null);
Console.WriteLine(result);
Console.WriteLine(result.StatusCode);
Console.WriteLine((result.Content as OrderEntity));
} catch (ApiException e) {
Console.WriteLine("Exception when calling PGCreateOrder: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
Get Order
try {
var result = cashfree.PGFetchOrder("<order_id>>", null, null);
Console.WriteLine(result);
Console.WriteLine(result.StatusCode);
Console.WriteLine((result.Content as OrderEntity));
} catch (ApiException e) {
Console.WriteLine("Exception when calling PGFetchOrder: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
Licence
Apache Licensed. See LICENSE.md for more details
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 is compatible. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.7
- JsonSubTypes (>= 2.0.1)
- Microsoft.CSharp (>= 4.7.0)
- Newtonsoft.Json (>= 13.0.3)
- Polly (>= 7.2.3)
- RestSharp (>= 110.2.0)
- Sentry (>= 3.41.0)
- System.ComponentModel.Annotations (>= 5.0.0)
-
.NETFramework 4.8
- JsonSubTypes (>= 2.0.1)
- Microsoft.CSharp (>= 4.7.0)
- Newtonsoft.Json (>= 13.0.3)
- Polly (>= 7.2.3)
- RestSharp (>= 110.2.0)
- Sentry (>= 3.41.0)
- System.ComponentModel.Annotations (>= 5.0.0)
-
.NETStandard 2.0
- JsonSubTypes (>= 2.0.1)
- Microsoft.CSharp (>= 4.7.0)
- Newtonsoft.Json (>= 13.0.3)
- Polly (>= 7.2.3)
- RestSharp (>= 110.2.0)
- Sentry (>= 3.41.0)
- System.ComponentModel.Annotations (>= 5.0.0)
-
.NETStandard 2.1
- JsonSubTypes (>= 2.0.1)
- Microsoft.CSharp (>= 4.7.0)
- Newtonsoft.Json (>= 13.0.3)
- Polly (>= 7.2.3)
- RestSharp (>= 110.2.0)
- Sentry (>= 3.41.0)
- System.ComponentModel.Annotations (>= 5.0.0)
-
net8.0
- JsonSubTypes (>= 2.0.1)
- Microsoft.CSharp (>= 4.7.0)
- Newtonsoft.Json (>= 13.0.3)
- Polly (>= 7.2.3)
- RestSharp (>= 110.2.0)
- Sentry (>= 3.41.0)
- System.ComponentModel.Annotations (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 6.0.7 | 376 | 7/7/2026 |