Integrate PayUMoney in ASP.Net

Introduction

PayU or PayuMoney is the fastest growing Payment Gateway in India that supports all major banks and credit/debit card for payment settlement. PayUMoney provide support to enterprise user on behalf of  PayUbiz Payment Gateway. As PayuBiz support more number of service then Payumoney.

Description

I have created a test demo with a PayUMoney in ASP.NET web form that explains the following procedure.

Step 1

Fill up all required details for process order
Figure 1: Fill up all required details for process order.

Before we start we first need to configure PayUMoney or PayUbiz for our website, the following is the description of the technical details.

  1. Production server (POST URL): To post successfully on the 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 (POST URL):
  3. Key-JBZaLc: (This key and salt value is provided by the PayUMoney team after our PayUMoney account is configured and approved.)
  4. Salt: GQs7yium

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

Success URI and Failure URI handles the response for a successful/failed transaction, this URI can also be set in web.config.

In the Test Account, when you click submit it may cause errors such as your bank is not authorized. Now you just need to click Try Again and enter the details for the Visa credit details as shown below.

Step 2

Select Payment method and fill data
Figure 2: Select Payment method and fill data

Here, for the test account of PayUMoney it requires details about the card number, CVV number and expire date depending on the 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 the PayUbiz support team will guide you. The PayUbiz payment gateway can accept most Indian bank cards and payments.

Step 3

After filling detail processing payment
Figure 3: After filling detail processing payment

To process a payment in test mode, just verify the user form data and actually not redirect to the bank payment and the process payment and after successful payment in test mode you will shortly get an email or SMS that you have entered when making an order.

Step 4

Returning after payment
Figure 4: Returning after payment

Returning after payment processing.

Step 5

display transaction completed successfully
Figure 5: This page displays transaction completed successfully and also user receives a SMS or Email from PayUMoney or PayUbiz about this transaction instantly.

History

I have updated this article. The changes done is the name of the payment gateway and the most important is the added Demo link so you can directly test live.

Conclusion

In this tutorial we have learned the basic procedure for integrating PayUMoney into ASP.NET websites. This basic procedure is the same for all PHP, ASP.NET and other technologies. I hope you can integrate a PayUMoney payment gateway into your website using this tutorial.

Note: Technical guideline documents and source code is given below:


Similar Articles