cashfree_pg 4.3.6

dotnet add package cashfree_pg --version 4.3.6                
NuGet\Install-Package cashfree_pg -Version 4.3.6                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="cashfree_pg" Version="4.3.6" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add cashfree_pg --version 4.3.6                
#r "nuget: cashfree_pg, 4.3.6"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install cashfree_pg as a Cake Addin
#addin nuget:?package=cashfree_pg&version=4.3.6

// Install cashfree_pg as a Cake Tool
#tool nuget:?package=cashfree_pg&version=4.3.6                

Cashfree PG .Net SDK

GitHub Discord GitHub last commit (branch) GitHub release (with filter) GitHub forks

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_pg

Configuration

using cashfree_pg.Client;
using cashfree_pg.Model;

Cashfree.XClientId = "<x-client-id>";
Cashfree.XClientSecret = "<x-client-secret>";
Cashfree.XEnvironment = Cashfree.SANDBOX;
var cashfree = new Cashfree();
var xApiVersion = "2022-09-01";

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(xApiVersion, 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(xApiVersion, "<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 Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  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 is compatible.  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 was computed.  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. 
.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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on cashfree_pg:

Package Downloads
SHARIZ.Infrastructure.UI

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.3.6 41 12/26/2024
4.3.5 38 12/26/2024
4.3.3 275 11/17/2024
4.2.5 521 9/27/2024
4.2.3 626 7/17/2024
4.2.0 103 7/12/2024
4.1.2 815 4/1/2024
4.1.0 261 3/29/2024
4.0.10 154 3/19/2024
4.0.7 632 2/23/2024
4.0.3 372 1/29/2024
4.0.2 149 1/23/2024
4.0.0 138 1/22/2024
3.2.12 111 1/29/2024
3.2.11 123 1/29/2024
3.2.3 110 1/24/2024
3.2.1 89 1/24/2024
3.2.0 122 1/23/2024
3.1.4 141 1/12/2024
3.1.3 131 1/10/2024
3.1.1 119 1/10/2024
3.1.0 176 1/2/2024
3.0.8 774 12/20/2023
3.0.6 160 12/14/2023
3.0.5 294 11/29/2023
3.0.2 157 11/21/2023
3.0.1 144 11/21/2023
3.0.0 167 11/21/2023