• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 212
  • Last Modified:

asp.net paypal

I have a asp.net/c#/web form website with masterpage and the form is using get method.

Now, I want to create a simple webpage and of course using default masterpage
my question:

1. I want a web form to accept paypal (it is subscription website) and how can i handle it by using get method. Paypal accepts post method only

2. Can you show me some codes to work with paypal that have website charge as subscription?
3. Can you show me a way after the payment is successfully posted the payment, it will redirect to anywhere I want
like success.asp?Id=123

Thanks
0
ITsolutionWizard
Asked:
ITsolutionWizard
1 Solution
 
Manoj PatilSr. Software EngineerCommented:
Hi,

There are several sample codes for PayPal Integration. Even you can find it on PayPal website too.

https://developer.paypal.com/webapps/developer/docs/classic/products/

https://developer.paypal.com/webapps/developer/docs/classic/api/


PayPal has some sample code on their website. However the bigger problem you'll face is that the user will probably want a real-time response. This is usually done by processing the PDT data that is submitted to your site when the user clicks the link to return to your site. At some point later PayPal will post to your IPN url similar data. You need to avoid processing the data twice.

Also the data in question is only PayPal's data about the transaction. It does not contain arbitrary data. You should probably record the customer's order before sending them to paypal, or else look for a pass-through variable. For example, when creating a billing agreement, there is a variable called custom which is passed back to you as you created it. You can store an order id or whatever you want in that variable. Be careful to validate its contents to make sure it's still correct for the transaction details.


http://www.codeproject.com/Tips/84538/Setting-up-PayPal-Instant-Payment-Notification-IPN

www.bluevisionsoftware.com/WebSite/TipsAndTricksDetails.aspx?Name=PayPal
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now