I am looking for a tutorial which will show me how to accept paypal payments as I am not having much luck with the documentation.
In the tutorial, I just need to understand how to capture a unique identifier when the payment has been initiated, and then use the unique identifier to update the database record when payment confirms the payment via ipn.
Does such a tutorial exist?
If you're looking for a PayPal IPN example written in PHP, I believe the following code works okay. It's based on the PayPal PHP IPN example (from the PayPal developer site), but I fixed some bugs from their example, added an alternate PHP socket example so you don't have to use SSL to connect to. How to Test and Troubleshoot PayPal IPN. One of the questions I most often see asked on forums like StackOverflow and Experts Exchange is regarding PayPal Instant Payment Notification (IPN) and how to test it thoroughly. It can be a little bit tricky because the result of the script you are running does not happen on screen.
Basically, I already have the payments working i.e. a user can make a payment and payment can send a notification to the ipn script, but I can't tell which payment paypal has accepted.
oshirowanenoshirowanen3,5827171 gold badges166166 silver badges312312 bronze badges
![Paypal Ipn Php Tutorial Paypal Ipn Php Tutorial](/uploads/1/2/4/3/124354619/187419723.jpg)
closed as off-topic by legoscia, andrewsi, LittleBobbyTables, Notlikethat, Kevin BrownJan 10 '15 at 23:56
This question appears to be off-topic. The users who voted to close gave this specific reason:
- 'Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.' – legoscia, andrewsi, LittleBobbyTables, Notlikethat, Kevin Brown
3 Answers
There guide is pretty well written and covers all of this:
AndrewAndrew7,6171010 gold badges5656 silver badges9898 bronze badges
PayPal has multiple ways to accept payment. Here is the site to PayPal developer site where you will find all the options: https://www.x.com/community/ppx/dev-tools
Achinth GurkhiAchinth Gurkhi1,36133 gold badges2020 silver badges4242 bronze badges
Here is a good tutorial on how to integrate your shopping cart with PayPal Website Payments Standard.
The PayPalIPN class provided by the toolkit I developed handles the entire IPN confirmation under the hood. You only need to get the data and update the order in the database. Optionally, you can also notify the customer with your own customized invoice or other information.
user337620user33762094122 gold badges1111 silver badges1818 bronze badges