Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#2.0 ASP.NET
Hi I am working on a ecommerce sites payment gateway part. I am not able to understand how to handle the return url from that payment gateway. I am using EBS payment gateway.
 
Any help is appreciated.
Posted 4-Oct-12 2:19am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Normally most of the e-commerce apps works like this, when you are redirecting to Payment Gateway website for payment processing.
 
1. From your aspx page, get all the values that are required to pass to the payment gateway page. By values, I mean the amount, qty, orderid, customerid, vat etc.
2. Pass the values to the payment gateway page through redirect. Disable the view state.
3. Now user enters all the cc information and click submit in payment gateway page
4. Payment Gateway page calls your aspx page (you need to configure or send the page to payment gateway prior)
5. You page is now called from payment gateway page. You now get the payment status, authorization code and other details in your page. Do your database stuff
6. After your //do stuff method, the page stays in payment gateway page.
7. You need to configure a link and pass it to the payment gateway page.
8. Users click the link and gets back to your apps.
 
Some payment gateway, just returns to your page after payment process and you need to skip the step 6-8
 
For the EBS Payment Gateway, you need to study their architecture and work accordingly.
 
Hope this clears some of your doubts.
 
cheers
  Permalink  
Comments
gopal pradhan at 5-Oct-12 5:35am
   
Thanks for your answer. It helped me a lot.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Never, ever, accept code from a insecure website to handle anything to do with real money.
You do not know who is giving you the code, you do not know what it does, you do not know that it places the monies correctly into the appropriate account, without passing the details to any third parties.

Only get such code from reputable companies - EBS in this case - the scope for fraud otherwise is far to large. And remember, you personally could be liable for any monies lost if your action is seen to be negligent - which getting your code from a public forum would most certainly be!
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 385
1 Maciej Los 180
2 Tino Fourie 132
3 Richard MacCutchan 115
4 arvind mepani 104


Advertise | Privacy | Mobile
Web02 | 2.8.140709.1 | Last Updated 4 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid