How to determine a PayPal payment was really made?

Discussion in 'Payment Processing' started by aab1, Apr 3, 2011.

  1. #1
    I process my payments manually but this of course can cause a few hours of delay to process orders. What's a good way to confirm that a paypal payment was really made and that's hard to scam to prevent people from sending a false "payment received" signal to get the service for free?

    I'm thinking maybe something that makes a random number and passes it to paypal in the "payment ok return address" and then my website confirms the same number is returned, but how would I prevent people from just manually calling that url with the random number in it?

    Thanks
     
    aab1, Apr 3, 2011 IP
  2. ngcoders

    ngcoders Active Member

    Messages:
    206
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #2
    This is what IPN is for , the payment variables are sent to Paypal for verification ... if there is an error paypal returns false.

    Just use any paypal ipn script. It works really well.
     
    ngcoders, Apr 5, 2011 IP
  3. monhosteur

    monhosteur Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    PayPal does not show your return URL with the full parameters. The parameters (the random number, transaction id, etc...) are normally sent to your URL directly from the PayPal server.
     
    monhosteur, Apr 6, 2011 IP
  4. aab1

    aab1 Member Affiliate Manager

    Messages:
    202
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    38
    #4
    Sorry I had never heard of IPN, where can I read about it to get started?

    Thanks
     
    aab1, Apr 9, 2011 IP
  5. nihangshah

    nihangshah Prominent Member

    Messages:
    5,536
    Likes Received:
    271
    Best Answers:
    3
    Trophy Points:
    395
    #5
    Over here: https://www.paypal.com/ipn

    It's used to send notifications of payments, reversals, refunds, chargebacks, disputes, etc.
     
    nihangshah, Apr 9, 2011 IP