Implement FirstData ICICI & CCAvenue Payment Gatway

By Shekhar Gigras

Design Pattern : Dependency Injection

Download the code and implement in your project. Download code have 3 projects.

  1. Web Project
  2. Console Application
  3. Payment Library

In Payment Library, no need to change it.Please see the below class diagram. Yiu can implment other payment gatway also in this project. Only just create one more class in below folder

TestPaymentGatway\TestPaymentGatwayLib\BusinessLogic
Already two classes is there, ICICIHelper and CCAvenueHelper

1

When you run the Web Project with start "CustomerForm.aspx" under ICICIBank folder then screen will display like this

2

When you run the Web Project with start "CustomerForm.aspx" under CCAvenue Folder then screen will display like this

3

Remeber: change the setting according to setting
  <appSettings>
    <add key="ICICIPaymentGatewayPurchase" value="https://google.com/connect/gateway/processing"/>
    <add key="ICICIPaymentGatewayRefund" value="https://google.com/ipgapi/services"/>
    <add key="CcAvenueMerchantId" value="1234566"/>
    <add key="CcAvenueWorkingKey" value="gfdgdfgdfgdfgdfgdfgfd"/>
    <add key="CcAvenueAccessCode" value="fdgdfgdfgdfgdfgfdg"/>
    <add key="CcAvenueCheckoutUrl" value="https://google.com/transaction/transaction.do?command=initiateTransaction"/>
  </appSettings>

Download Sample Project

Connect by Whatsapp

Posted in Dotnet on May 17, 2020


Comments

Please sign in to comment!