richo89 Posted August 11, 2009 Share Posted August 11, 2009 Hi just looking for some help here. I currently have a website whereby the user sells a number plate and they need to enter their information to sell the plate. However, I currently have paypal payments setup and need to know the best way of accepting payment. I currently have a button where they pay with paypal and then it takes them to a link where they can enter the information for their number plate and click submit. However, how do I make this page secure so that a user cant just type it into their URL and enter plates into the database. Or is their an alternative way to do it? Quote Link to comment https://forums.phpfreaks.com/topic/169749-paypal-payment/ Share on other sites More sharing options...
JonnoTheDev Posted August 11, 2009 Share Posted August 11, 2009 Use paypal IPN. You should not have the user enter any information after a payment has been made. All user information should be recorded prior to the payment. The IPN will allow you to send information back to your website as a background post to say whether the payment was successful or not. You can record this data. Quote Link to comment https://forums.phpfreaks.com/topic/169749-paypal-payment/#findComment-895539 Share on other sites More sharing options...
richo89 Posted August 11, 2009 Author Share Posted August 11, 2009 Use paypal IPN. You should not have the user enter any information after a payment has been made. All user information should be recorded prior to the payment. The IPN will allow you to send information back to your website as a background post to say whether the payment was successful or not. You can record this data. Brilliant so this will mean the user enters the inforamtion, hits submit/paypal pay now, then the information will be recorded and sent back to my website - can I get this to automatically update mySQl database? Quote Link to comment https://forums.phpfreaks.com/topic/169749-paypal-payment/#findComment-895544 Share on other sites More sharing options...
JonnoTheDev Posted August 11, 2009 Share Posted August 11, 2009 Correct. Paypal has code examples. https://www.paypal.com/ipn Quote Link to comment https://forums.phpfreaks.com/topic/169749-paypal-payment/#findComment-895546 Share on other sites More sharing options...
richo89 Posted August 14, 2009 Author Share Posted August 14, 2009 Hi could I just get some further clarification on exactly whats required here. I have a page whereby the users select the service that they want ie. Sell a prefix number plate Sell a current number plate Now once the user has clicked the relevant hyperlink they have a form where they fill in a few select details. Looks like this: I then want the inforamtion that has been entered into the form to be posted to paypal - so that I can then take them to a confirmation page which says thank you for payment and at the same time enters the relevant information into my database? Do I need to setup a paypal button to take payment and then go to an external link? How does the process work posting data through the paypal payment? Quote Link to comment https://forums.phpfreaks.com/topic/169749-paypal-payment/#findComment-897941 Share on other sites More sharing options...
JonnoTheDev Posted August 14, 2009 Share Posted August 14, 2009 With the IPN you don't generate buttons. You will need to build the form yourself. Read the paypal documentation or speak to your account manager. You will create a php script on your server that paypal will request when a payment is being processed. This will update your database. Again read the documentation or look at the code examples to do this. It is a little tricky to setup for the first time but once you have read the docs you will understand better. Quote Link to comment https://forums.phpfreaks.com/topic/169749-paypal-payment/#findComment-897953 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.