Paypal Code RRS feed

  • Question

  • User-297332451 posted

    I just need a working code for the following scenario

    1 TextBox which has seller email ---- person who gets the money

    1 button ,

    When I click the button the money goes from the companies Paypal account into the account attached with the email entered into the textbox ,nothing else is needed.

    Can someone give the code to do this as I have read lots of documentation on this

    Wednesday, August 28, 2013 9:00 AM

All replies

  • User-760709272 posted

    PayPal has all of the documentation you need, they even have c# sample code.  It's not a simple tricial task of a few lines of code, there are many different apis with varying processing paths.  You have to decide which kind of payment you want....do you want it all on your site, do you want to direct off to paypal, and what method you want dictates the code, some involving code in multiple classes/pages.  Then you have the logic around veryfying etc etc.  The most basic level of code, just taking the payment, is available on paypal's own site. 

    Wednesday, August 28, 2013 9:39 AM
  • User-297332451 posted

    I need code , I have already read lots of documention on this , I won't be posting here microsoft has lots of documentation in MSdn then post on the forum

    Wednesday, August 28, 2013 10:32 AM
  • User-760709272 posted

    Code for what?


    Are you using adaptive payments? Express checkout? PayPal Payments Advanced?  Pro?  Standard? Are you using the hosted solution?  PayPAl has many solutions and the implementation differs based on the method.  If you are using PayPal Payments (most common) then there is no code to take the payment, you simply submit a standard for to their url with the correct parameters.  These forms are all detailed in the integration guide


    To verify the payment you can either not verify at all, just look at your account manually.  You can use PDT or IPN.  PDT is the simplest way


    The above link shows the form you submit and the same code to validate can be found here


    If you want to use IPN then, again, the implemetation guide explains the process and the sample code is here


    PayPal is 99% configuration of your account and implementing *your* business logic, and 1% is actually communicating with paypal apis.  The code for that 1% is all on PayPal's site.  You have to read all the docs, understand the processes, and then the code will make sence.  If you can't understand the documentation and can't understand the process, then don't use PayPal.  Or at least just use "Buy Now" buttons.


    Wednesday, August 28, 2013 12:37 PM