web design, England, Britain, UK, belgium
 

Enable VirtueMart Paypal Notifications when Administrator folder is htaccess protected - Joomla & VirtueMart Tips & How To's

Enable VirtueMart Paypal Notifications when Administrator folder is htaccess protected

Home Joomla VirtueMart Tips Enable VirtueMart Paypal Notifications when Administrator folder is htaccess protected

Sat

06

Feb

Enable VirtueMart Paypal Notifications when Administrator folder is htaccess protected
  • VirtueMart 1.1
  • Paypal IPN

The automatic notification of your Paypal payments received through your VirtueMart Shop will not work if your administrator folder is .htaccess protected (as it should be!).
Here's what you need to do to get it working.



Paypal IPN email The IPN (Instant Payment Notification) works very well with VirtueMart but not if your administrator folder is correctly .htaccess protected.


To get it working is very simple, just make a new php file by opening your text editor and pasting these couple of lines below and saving it as notify.php. (You can call it anything you like actually).
 
<?php
include('administrator/components/com_virtuemart/notify.php');
?>
 

Then in your Paypal configuration file (Components->VirtueMart->Store->List Payment Methods->Paypal->Configuration) change the notify url to the correct path.
 
"notify_url" => SECUREURL ."notify.php",
 

This will call the native notify file, bypassing the .htaccess protection and allow the automatic confirmation of the order, send the customer email etc etc...

To test that everything is working make an order through your shop in the normal way but cancel out at the Paypal stage.

In your database look in the jos_vm_orders table for the the order_id that you just received in your email from the shop and copy the order_number, this will be in the form 96_3db3e8cc88c22858a4c9cae9ba4b2.

Go to your Paypal Sandbox - https://developer.paypal.com, login and choose the Test Tools link. Paste in the url to your new notify.php file and choose eCheck-complete in the dropdown.

The form will open further, you only need to change the currency, amount and paste in the order_number from the database into the invoice field of the form. Click send and you should get the payment confirmation email, the order will be set to confirmed and the email/s will be sent to the customer.

Paypal Sandbox IPN
Last Updated on Monday, 06 September 2010 08:51
 
VirtueMart
Your Cart is currently empty.



Enable VirtueMart Paypal Notifications when Administrator folder is htaccess protected|Joomla & VirtueMart Tips & How To's



Enable VirtueMart Paypal Notifications when Administrator folder is htaccess protected


paypal, order, notify, email, virtuemart, php, file, url, payment, htaccess, working, shop, form, number, database, change, automatic, configuration, ipn, paste, send, test, confirmation, customer, choose, received, protected, folder, administrator, notification, field, click, set, table, copy, sent, confirmed, invoice, dropdown, login

|

We use cookies to improve our website and your experience when using it. Cookies used for the essential operation of the site have already been set.
To find out more about the cookies we use and how to delete them, see our privacy policy.

I accept cookies from this site.