Jump to content

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/169749-paypal-payment/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/169749-paypal-payment/#findComment-895539
Share on other sites

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?

Link to comment
https://forums.phpfreaks.com/topic/169749-paypal-payment/#findComment-895544
Share on other sites

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:

 

kdao89.jpg

 

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?

Link to comment
https://forums.phpfreaks.com/topic/169749-paypal-payment/#findComment-897941
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/169749-paypal-payment/#findComment-897953
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.