Forum Moderators: phranque
In the e-mail I send out - I will send out a user name and password for access to my website. This user name and password will work as long as I can keep the site up and running.
Ideally I want to do this with a web based e-mail account such as hotmail or yahoo. However, would still be interested to hear about solutions with other e-mail account types.
Why not just use the Paypal merchant tools you may ask? Why not use the Instant Payment Notification (IPN) of paypal - where paypal can notify me of being paid by passing a message to my server? The use of these kind of tools, as far as I know, requires database capability on my server. I have no such capability at present. This will change in the future. But for now - no.
I realise what I propose here is not the optimal solutuon - using the IPN tool of paypal is optimal. But for now - I am really keen on what I propose here if it is possible. Is it possible?
Would be interested to hear what people think. Many, many thanks.
With the email way of doing things you'll need to parse it and find the person's email address - not hard to do, simply more error prone. What if paypal changes the format of the emails they send out?
Also might want to consider issuing each person a unique username/password. What if the username/password gets posted publically?
Each IPN contains pretty much all the details in the transaction, you can extract the email address and send out emails through your own scripts.
Most webmasters use IPN to send out order receipts and to manage inventory. Managing inventory usually requires database. Maybe that is why you had the impression of IPN requiring database.
After successful payment process system will forward buyer to your site
and some parameters will back to your script by the POST method:
¡P action - type of transaction (product/subscription/payment)
¡P pid - internal product ID
¡P pname - product name
¡P buyer - buyer username
¡P total - total amount
¡P quantity - quantity
¡P comments - buyer notes
¡P referer - system referer URL (http://www.payswiss.com)
You can get this parameters by the global POST variable,
e.g. $_POST[--VARIABLE-NAME--]...
MY question - I have no idea how to get my hands on these variables. Can I get hold of them in javascript? Or can only server side languages use these variables? Really hope javascript is possible? What would these variables be called in javascript?