1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PayPal & PHP - Subscription Tracking - No idea

Discussion in 'PHP' started by moronic_kaos, Mar 13, 2010.

  1. #1
    Totally lost. How can a php script track to see if a payment was made?
     
    moronic_kaos, Mar 13, 2010 IP
  2. LittleJonSupportSite

    LittleJonSupportSite Peon

    Messages:
    386
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Kaos: On its own it cannot.

    You need an API to pass a validated token back to the script.

    For example PayPal API is setup with a ton of support from the dev team as well as a wide array of options and sample code for you to use

    IPN == Instant Payment Notification

    It notifies the server of a validated transaction and you can then handle it on your end.

    Serve up a file, create a user account etc etc.
     
    LittleJonSupportSite, Mar 13, 2010 IP
  3. racklane

    racklane Peon

    Messages:
    98
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I really dont think you helped him at ALL.
     
    racklane, Mar 13, 2010 IP
  4. Alex Roxon

    Alex Roxon Active Member

    Messages:
    424
    Likes Received:
    11
    Best Answers:
    7
    Trophy Points:
    80
    #4
    Paypal's Instant Payment Notification feature should accomplish what you need. Basically, if configured properly, when a payment is made to your account, paypal sends an HTTP request to your server that contains the payment details (i.e. transaction id, email, payer adress, payment amount, etc.). Your script should send a request back to the server (to prevent people from sending spoofed HTTP requests) to verify the validity of the payment, and if it checks out, proceed.

    Try to Google 'Paypal IPN PHP tutorial' (or something along those lines).
     
    Alex Roxon, Mar 13, 2010 IP
  5. moronic_kaos

    moronic_kaos Well-Known Member

    Messages:
    202
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #5
    So the only way to do it is with something like this:
    Fair enough...

    The other question I had is if this requires a business (paid) paypal account rather than a personal one.
     
    moronic_kaos, Mar 13, 2010 IP
  6. Grit.

    Grit. Well-Known Member

    Messages:
    1,424
    Likes Received:
    22
    Best Answers:
    1
    Trophy Points:
    110
    #6
    Grit., Mar 14, 2010 IP