Payumoney Integration With Asp.Net

Introduction.

PayUMoney is fastest growing Payment Gateway in India,which support all major banks and credit/debit card for payment settlement. PayUMoney is now provide support for enterprise hence its known as PayUBiz Payment Gateway.

Description

I have created test demo with PayUMoney  in Asp.Net webform which explains in various step as below. 

Step1 :

 

Before we start first we need to configure PayuMoney or PayuBiz for our website,here is below description about technical details
  1. Production server: POST URL: https://secure.payu.in/_payment. To post successfully on production server, your merchant application status should be approved and you should use the key sent to you by PayUMoney after confirming the approval of your application.
  2. Test server: POSL URL: https://test.payu.in/_payment
  3. KeyJBZaLc (This key and salt value is provided by PayuMoney team after our payumoney account is configured and approved.)
  4. Salt GQs7yium

In above image Amount,Email,First Name and Phone number is mandatory and when actual order is placed it comes dynamically It's a customer data.

Success URI and Failure URI handle response for successful/failed transaction this URI can also be set in web.config.

In Test Account When you click submit It may be error occurs like your bank is not authorize you just need to Click Try Again  and enter detail in visa credit details as given below.

Step 2 :

Select Payment method and fill data
Select Payment method and fill data
Here, For test account of PayUMoney It requires to enter details about card number ,cvv number and expire date as per PayuMoney Configuration. 
  1. Card Name: any name
  2. Card Number: 5123456789012346
  3. CVV: 123
  4. Expiry: May 2017 
After production some minor configuration is needed as PayuMoney support team guide you, PayuMoney payment gateway can accept most of Indian bank card and payment. 

Step 3 :

After filling detail processing payment
After filling detail processing payment



  Processing payment in test mode just verify user form data and actually not redirect to bank payment and process payment and after successful payment in test mode you will shortly get email or SMS which you have entered while making order. 

Step 4: 

Returning after payment
Returning after payment


   Returning after payment processing

Step 5: 


 This page display transaction completed successfully and also user receive SMS or Email from payu money about this transaction instantly.


History:

I have updated this article. Main change is name of payment gateway and most important  Added Demo link so you can directly test on live.

Conclusion :

In this tutorial we have learn about basic step for integrating PayuMoney in asp.net website. this basic step is same for all PHP, ASP.NET and other technology. I hope you can integrate PayuMoney payment gateway in your website using this tutorial. 


Note: Technical guideline documents and source code is below 

Download SourceCode

Demo PayU Money 


24 comments:

  1. Hi,

    Can you let me know how to read post back parameters from return url which was sent by PayU using javascript.

    ReplyDelete
  2. You can access Post Back parameters from return URL using Request.From in code behind.

    ReplyDelete
    Replies
    1. But the problem here is I'm using Angular for my app. No back end code. Everything will be coming from services as per site.

      Delete
  3. But the problem here is I'm using Angular for my app. No back end code. Everything will be coming from services as per site.

    ReplyDelete
  4. We need a sample code in asp.net for verify_Payment which one of the method in PAYU integration kit. it will be useful to know transaction status. Please help us.

    ReplyDelete
  5. Thanks a lot for the code and demo :)

    ReplyDelete
  6. Not able to download the code. Could you please share the code to me. email: mks.mukesh11nov@gmail.com

    ReplyDelete
  7. Hi,
    Can you have same sample code for asp.net webservice ? if you have then please mail me on shaikhimran.latif@gmail.com

    ReplyDelete
    Replies
    1. Sorry currently don't have. I will update if I get web service code

      Delete
  8. This comment has been removed by the author.

    ReplyDelete
  9. I have two Questions:
    Q1. I downloaded code from payuMoney and try to run it but getting error: Sorry! Some Problem Occurred. But when running your source code it's running fine. As a solution I pasted your Key And Salt but still same problem persist.
    Q2. I'm trying to use MVC it's also showing the same problem also Does it support MVC5(VS2013)?

    ReplyDelete
    Replies
    1. As this source code is not latest one and payumoney policy may be also changed that's why while you using their code some extra configuration may required.

      Delete
  10. Hi,I didn't try to test payumoney on MVC and different platform.But as per my understanding as this code is implemented and configured with html form it is still used in MVC5 or Other platform

    ReplyDelete
  11. I'm using payumoney integrated tools kit code It Is Not working in my project please help me...how to use

    ReplyDelete
  12. I want to use refund api in asp.net could you please provide some sample code.

    ReplyDelete
  13. Sir I am unable to receive My Refund Into My Wallet so can you please tell the PayUMoney Customer Care so that I can connect to the care executive and can get some help regarding my problem.

    ReplyDelete
  14. You can reach out at Payumoney support https://www.payumoney.com/contactus.html or at their Facebook official page so they can respond to your query ASAP.

    ReplyDelete
  15. Good one you explain. all building and civil related work to must use for the pre engineering process is very well done to introduce. its call us for PEP. Majorly access material is aluminium scaffolding for access and tools used for core work. Thanks for the opportunity. and Thanks Admin.

    ReplyDelete

Dynamic Query in LINQ using Predicate Builder

Introduction This tutorial explains how to create a dynamic query using LINQ, Using Predicate Builder  LINQ to SQL dynamic query an...

Learn More