Delivers Paypal IPN (Instant Payment Notifications) messages to a locally hosted IPN listener (e.g. for use with Drupal/Ubercart)
If you are running a version of Drupal with ubercart locally (e.g. from http://localhost), and want to test the full end-to-end Paypal payment experience using PayPal Website Payments Standard (PayPal WPS) without this tool, you will be able to:
- Set your Ubercart Payment Settings to use the Sandbox, rather than Live PayPal server
- Set the PayPal e-mail address to a test seller account set up on http://sandbox.paypal.com
- Make a payment from your site hosted locally, through PayPal's sandbox, using a test buyer account, and you'll be returned back to your local site
However, the order will remain at a "Pending" or "In Checkout" state, as PayPal cannot send an Instant Payment Notification (IPN message) back to your site unless it is set up on a publically available server. This tool allows your localhost to fake that IPN message to your locally hosted IPN receiver, and thus, the post-payment processing can be completed (e.g. user roles assigned, confirmation emails sent, order status moved onto "Completed" state).
###How to use it
- Make the test payment through PayPal's sandbox - your order should be in a "Pending" state
- Place the files from this repository somewhere where they will be accesible by localhost (e.g. in your htdocs, or equivalent, folder)
- Open index.html
- Grab the IPN message from http://sandbox.paypal.com by logging in as the test seller account and selecting History > IPN History from the top menu and selecting the message you want to mimic
- Enter the IPN message into index.html and change the location of your IPN listener (if different from that shown).
- Click "Convert to IPN post"
- All the variables associated with the payment are shown on screen. Click "Send to IPN listener".
- Check the order has now moved on from its "Pending" or "In Checkout" state.