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
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.
- 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.
- Test server: POSL URL: https://test.payu.in/_payment
- Key – JBZaLc (This key and salt value is provided by PayuMoney team after our payumoney account is configured and approved.)
- 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 |
Here,
For test account of PayUMoney It requires to enter details about card
number ,cvv number and expire date as per PayuMoney Configuration.
- Card Name: any name
- Card Number: 5123456789012346
- CVV: 123
- Expiry: May 2017
Step 3 :
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 |
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
Note: Technical guideline documents and source code is below
Hi,
ReplyDeleteCan you let me know how to read post back parameters from return url which was sent by PayU using javascript.
You can access Post Back parameters from return URL using Request.From in code behind.
ReplyDeleteBut the problem here is I'm using Angular for my app. No back end code. Everything will be coming from services as per site.
DeleteBut the problem here is I'm using Angular for my app. No back end code. Everything will be coming from services as per site.
ReplyDeleteWe 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.
ReplyDeleteThanks a lot for the code and demo :)
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteHi,
ReplyDeleteCan you have same sample code for asp.net webservice ? if you have then please mail me on shaikhimran.latif@gmail.com
Sorry currently don't have. I will update if I get web service code
DeleteThis comment has been removed by the author.
ReplyDeleteI have two Questions:
ReplyDeleteQ1. 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)?
Same problem
DeleteAs 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.
DeleteSame here
ReplyDeletesame problem here
ReplyDeleteHi,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
ReplyDeleteI'm using payumoney integrated tools kit code It Is Not working in my project please help me...how to use
ReplyDeleteI want to use refund api in asp.net could you please provide some sample code.
ReplyDeleteSorry, I don't have that code.
Deletei want to save the value to table
ReplyDelete