Paypal

Discussion in 'PHP' started by baris22, Jul 13, 2009.

  1. #1
    hi everybody,

    I made a script. there is a buy now button and it takes you to paypal and after payment is made it is generating and sending login id and pass to paypal e-mail address ( I am using Instant Payment Notification (IPN) function of Paypal)

    with that login id and pass user can log into my site.

    On paypal there is an option that you can return to a page on my site after payment is made.

    My question is which method can i use to display user id and pass on the return page from paypal?
     
    baris22, Jul 13, 2009 IP
  2. HivelocityDD

    HivelocityDD Peon

    Messages:
    179
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you are using IPN you can set custom fields 7 tags max. You can pass those login details to the custom tags and IPN will post this data after a successfull payment. You can say a call back php file can retrieve those posted data (IPN) and get it displayed.
     
    HivelocityDD, Jul 13, 2009 IP
  3. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #3
    or maybe generating the user and pass on the returning page?
     
    crivion, Jul 13, 2009 IP
  4. baris22

    baris22 Active Member

    Messages:
    543
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #4
    No, that is not a good idea because user might not return to my site after making the payment.

    i can not use the session either because i loose the session.
     
    baris22, Jul 13, 2009 IP
  5. Wz Network

    Wz Network Peon

    Messages:
    113
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Before payment is made, the account can be pre-generated and then activated by visiting the page after payment or clicking an activation link in email.
     
    Wz Network, Jul 13, 2009 IP
  6. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #6
    hmm then use custom fields and pass the userID
    at return page extract user info by that custom field returned by paypal
     
    crivion, Jul 13, 2009 IP
  7. newgenservices

    newgenservices Well-Known Member

    Messages:
    862
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    105
    Digital Goods:
    1
    #7
    I would suggest you create the account and then send the user to PayPal for payment and let the IPN process the activation. You can send out two mails (one before being sent to PayPal for payment with a link to pay at a later time and other to confirm the payment and activation) So even if the user closes the window, he can click the link in the mail and activate the account.
     
    newgenservices, Jul 14, 2009 IP
  8. webaddict.info

    webaddict.info Banned

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    this probably is good idea
     
    webaddict.info, Jul 14, 2009 IP