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?
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.
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.
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.
hmm then use custom fields and pass the userID at return page extract user info by that custom field returned by paypal
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.