Payabbhi 2.0.2

dotnet add package Payabbhi --version 2.0.2                
NuGet\Install-Package Payabbhi -Version 2.0.2                
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="Payabbhi" Version="2.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Payabbhi --version 2.0.2                
#r "nuget: Payabbhi, 2.0.2"                
#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 Payabbhi as a Cake Addin
#addin nuget:?package=Payabbhi&version=2.0.2

// Install Payabbhi as a Cake Tool
#tool nuget:?package=Payabbhi&version=2.0.2                

Payabbhi .NET Library

Make sure you have signed up for your Payabbhi Account and downloaded the API keys from the Portal.

Requirements

.NET 4.0 and later.

Installation

Install via NuGet

From the command line:

$ nuget install Payabbhi

From Package Manager:

PM> Install-Package Payabbhi

From within Visual Studio:

  1. Open the Solution Explorer.
  2. Right-click on a project within your solution.
  3. Click on Manage NuGet Packages.
  4. Click on the Browse tab and search for Payabbhi.
  5. Click on the Payabbhi package and click Install.

Documentation

Please refer to:

Usage

A typical usage of the Payabbhi .NET Library is shown below:

using Payabbhi;

// Set your credentials
Client client = new Client('<accessId>', '<secretKey>');

// Create an order
Order order = client.Order.Create(
                new Dictionary<string, object>() {
                  {"merchant_order_id", '<merchantOrderId>'},
                  {"amount", 100},
                  {"currency", "INR"},
                  {"payment_auto_capture", false}
                });


For more examples see the .NET API documentation

Verifying payment signature

Payabbhi .NET library provides utility functions for verifying the payment signature received in the payment callback. The snippet below demonstrates a typical usage:

client.Utility.VerifyPaymentSignature(
  new Dictionary<string, string>() {
    {"payment_signature", '<paymentSignature>'},
    {"order_id", '<orderId>'},
    {"payment_id", '<paymentId>'}
  });

Verifying webhook signature

Payabbhi .NET library provides utility functions for verifying the webhook signature. The snippet below demonstrates a typical usage:

client.Utility.VerifyWebhookSignature(payload,actualSignature,secret);

// replayInterval is optional
client.Utility.VerifyWebhookSignature(payload,actualSignature,secret,replayInterval);
Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
2.0.2 642 6/1/2020
2.0.1 674 12/19/2019
2.0.0 521 11/15/2019
1.0.1 5,072 11/16/2018
1.0.0 871 7/31/2018