Sunday, 15 May 2011

php - Buy Now button return url: Update field in database -


What I'm trying to do (and how to not explain it) After successful completion of a successful transaction, PayPal , I need it to go back to my website and update a field in the database based on the user.

I have no indication of this, and I am searching for hours.

You can do this in two ways, after the payment is completed, you can update your database. Can use IPN or PDT. Better than two methods, IPN must be used, or in combination with PDT, at least use IPN.

Quick Payment Information (IPN) is a messaging service that informs you of events related to PayPal transactions. You can use it to automate back office and administrative tasks, such as completing orders, tracking customers, and providing status related to transactions and other information.

You can find more pages on the IPN. Apart from this, there are some more links on the left hand side of the page that are useful. There are pages for creating an IPN with a listener, setup, test, IPN history, FMF, IPN / PDT variable and sample code.

PayPal's PDT system verifies the merchant site's use of the PayPal payment standard and lets them certify this information such sites can display this data locally in a data order confirmation. Are you ??? Page. IPN is more reliable than PDT, and with PDT, it also depends on clicking on a button to come back to your site. If they do not click on the button to return to your site, then no information is sent back and you can not send this information again as you can with the IPN. You can find more on PDT.

I personally use PDT to crimp a dynamic thanks page on my site, and I use IPN to update my database and automate some tasks. Hope this will help. :)

No comments:

Post a Comment