web design, England, Britain, UK, belgium
 
Ulti Clocks content

Enable VirtueMart Paypal Notifications when Administrator folder is htaccess protected

JOOMLABOTTOM sand 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

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

Sam

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


Add this page to your favorite Social Bookmarking websites
Digg! Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! Slashdot! Technorati! StumbleUpon! Spurl! Newsvine! Furl! Fark! Yahoo! Netvouz! Mister-Wong! RawSugar! Ma.gnolia! Squidoo! DZone! Swik!
Zuletzt aktualisiert am Montag, 06. September 2010 um 08:51 Uhr
 

Add your comment

BoldItalicUnderlineStrikethroughSubscriptSuperscriptEmailImageHyperlinkOrdered listUnordered listQuoteCodeHyperlink to the Article by its id
Very HappySmileWinkSadSurprisedShockedConfusedCoolLaughingMadRazzEmbarrassedCrying or Very SadEvil or Very MadTwisted EvilRolling EyesExclamationQuestionIdeaArrowNeutralMr. GreenGeekUber Geek
Your name:
  The word for verification.
Lowercase letters only with no spaces.

The word for verification.<br/>Lowercase letters only with no spaces.
Word verification:

Titel:
Comment:
Comments (3)
location
3 Dienstag, 23. Februar 2010 um 15:33 Uhr
Cheryl
I put it in the root folder and changed the PP IPN to that file and it seems to be working. I am using a paypal pro plugin too, by the way. Thank you for posting this. LIFESAVER!!

Cheryl
@Cheryl
2 Dienstag, 23. Februar 2010 um 14:59 Uhr
GJC (admin)
Hi Cheryl,

Yep, in the root..
thank you!
1 Dienstag, 23. Februar 2010 um 14:50 Uhr
Cheryl
This is exactly what I need. However, not sure where I place the new notify.php file? Does it go in the root?



Cheryl

Our Recommended Reading

For those interested in extending their knowledge of Joomla! & VirtueMart, Packt Publishing has an excellent range of help & how to books.
Listed below are some I can recommend.
Simply click on the images to be taken directly to their web shop.


Joomla! Social Networking with JomSocial
Joomla! Social Networking
with JomSocial

by Kwasi Boateng & Beatrice A. Boateng.
Joomla! 1.5 Multimedia
Joomla! 1.5 Multimedia
by Allan Walker.


Building job sites with Joomla!
Building job sites with Joomla!
by Santonu Kumar Dhar.

Joomla! Template Design: Create your own professional-quality templates with this fast, friendly guide
Joomla! Template Design: 2nd Edition
Create your own professional-quality
templates with this fast, friendly guide
by Tessa Blakeley Silver.
Magento: Beginner's Guide
Magento: Beginner's Guide by William Rice
is a must for anyone trying the
open-source e-Commerce solution.

Read the review

object-oriented-javascript-applications-libraries
Object-Oriented JavaScript by
Stoyan Stefanov gives you a very
comprehensive grounding in
the latest Javascript techniques.

Read the review
Joomla! Web Security
Joomla! Web Security
by Tom Canavan.

Joomla 1.5 Top Extensions Cookbook
Joomla 1.5 Top Extensions Cookbook by
Suhreed Sarkar is an ideal and concise round up of the extensions available for the Joomla! system.

Read the review

Latest Articles

Paypal Donation

If you use this module on your site please donate a small amount.
Any donation amount appreciated.

VM Live Product Search

Recommended Reading

For those interested in extending there knowledge of Joomla! & VirtueMart Packt Publishing has an excellent range of help & how to books.
Listed below are some I can recommend.
Simply click on the images to be taken directly to their web shop.

Mastering Joomla! 1.5 Extension and Framework Development
Mastering Joomla! 1.5 Extension and
Framework Development : 2nd Edition

by James Kennard.
Read the review

Building job sites with Joomla!
Building job sites with Joomla!
by Santonu Kumar Dhar.
Learning Joomla! 1.5 Extension Development Learning Joomla! 1.5 Extension Development
by Joseph L. LeBlanc.
Read the review
Joomla! E-Commerce with VirtueMart
Joomla! E-Commerce with VirtueMart
by Suhreed Sarkar.

Read the review
Joomla! 1.5 Site Blueprints Joomla! 1.5 Site Blueprints
by Timi Ogunjobi.

Joomla! 1.5 JavaScript jQuery Joomla! 1.5 JavaScript jQuery
by Jose Argudo Blanco.
Read the review
Joomla! Social Networking with JomSocial Joomla! Social Networking with JomSocial
by Kwasi Boateng & Beatrice A. Boateng.

Joomla! 1.5 Multimedia Joomla! 1.5 Multimedia
by Allan Walker.

Joomla! Web Security Joomla! Web Security
by Tom Canavan.

Mastering Joomla! 1.5 Extension and Framework Development Mastering Joomla! 1.5 Extension and Framework Development : 2nd Edition
by James Kennard.

Joomla! Template Design: Create your own professional-quality templates with this fast, friendly guide Joomla! Template Design: Edition 2 - Create your own professional-quality templates with this fast, friendly guide
by Tessa Blakeley Silver.

Magento: Beginner's Guide
Magento: Beginner's Guide by William Rice
is a must for anyone trying the
open-source e-Commerce solution.

Read the review

JOOMLABOTTOM



Enable VirtueMart Paypal Notifications when Administrator folder is htaccess protected



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