PayPal IPN

Discussion in 'PHP' started by adamjblakey, Apr 4, 2008.

  1. #1
    Hi,

    I have just signed up to paypal pro payments and want to get this set-up on my site.

    What i want to do is have a form where the customer can fill in their credit card details and when the user clicks pay now then it will check with paypal without going off my site to see if the payment is valid or not.

    I have seen quite a few classes which i think do this but want to know your opinion on the best way to set this up and also what script to use if you have done this before and used a script.

    Cheers,
    Adam
     
    adamjblakey, Apr 4, 2008 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    jestep, Apr 4, 2008 IP
  3. adamjblakey

    adamjblakey Active Member

    Messages:
    1,121
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    80
    #3
    adamjblakey, Apr 4, 2008 IP
  4. vishnups

    vishnups Banned

    Messages:
    166
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi,

    Do you have a secure server where you can ask customer to fill their credit card details??? The above comment by jestep is wrong. "The customer will be transferred to paypal, but they have to come back to your site to complete the payment". The customer will be transferred to paypal and completes his payment there. If you have enabled IPN or PDT you should create a security token. Before passing the payment variables Paypal will send some encoded variables back to your website. You will then need to pass the variables you need back to paypal along with the security token. After confirming this paypal will send the payment variables back to your IPN/PDT scripts. You need to url decode the variables and either display the status or store the variables in a database. Again you need to send a OK message back to Paypal. There are lot of other things which also need to be taken into consideration like payment status, whether it is Completed etc..Or whether the customer has paid by e-check in case there will be a delay etc...All these happen behind the scenes. I am currently developing a custom shopping cart for my site in which I am testing PDT and IPN. Bit complex to understand for those not familiar with Programming...
     
    vishnups, Apr 4, 2008 IP
  5. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #5
    Looks like they removed all of their sample code from the paypal dev network. They used to have full sample scripts for integration.

    Basically you need to find a Payflow Pro php script or develop one yourself. The UK Payments pro system is based off the Verisign Payflow Pro Gateway.

    There's some good information here:
    http://www.pdncommunity.com/pdn/board?board.id=payflow

    I'll post a link if I come across a full script for the UK version.
     
    jestep, Apr 4, 2008 IP
  6. vishnups

    vishnups Banned

    Messages:
    166
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hi,

    Paypal has not removed the scripts..it is still there..You can locate it at:
    http://www.paypal-tech.com/SG2/

    But you need to code more details in the script that Paypal provides according to your requirements. It should not be used as such. They have provided comments where you need to add additional code.

    The following link about IPN will also help you:
    https://www.paypal.com/IntegrationCenter/ic_ipn.html
     
    vishnups, Apr 4, 2008 IP
  7. adamjblakey

    adamjblakey Active Member

    Messages:
    1,121
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    80
    #7
    Hmm.. Sounds quite difficult but i think it is a worthy feature to have.

    Yes i have a secure server so this is not a problem.
     
    adamjblakey, Apr 4, 2008 IP
  8. vishnups

    vishnups Banned

    Messages:
    166
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Yep...of course a must for any worthy online payment system. If you need assistance in coding you can PM me...
     
    vishnups, Apr 4, 2008 IP
  9. adamjblakey

    adamjblakey Active Member

    Messages:
    1,121
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    80
    #9
    Ok thank you very much, i would imagine i will be in touch.
     
    adamjblakey, Apr 4, 2008 IP