News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Pay & Read Payer for VISA, MasterCard, Diners

Started by bassman, May 13, 2006, 12:53:06 PM

Previous topic - Next topic

cjes

Hi Akerman,

Thanks for your reply.

You referring to @ being the problem made me check the email settings in the php files and I had changed a little too much...

I now succeeded to get the payment module set-up, but like Lindhardsen I have a problem when redirecting to my site.

I made the changes in the payson_notify.php file linking to the correct menu item, but get the following error code:


Warning: require_once() [function.require-once]: Unable to access /payson/administrator/components/com_virtuemart/virtuemart.cfg.php in /customers/mydomain.com/mydomain.com/httpd.www/payson/administrator/components/com_virtuemart/payson_notify.php on line 105

Warning: require_once(/payson/administrator/components/com_virtuemart/virtuemart.cfg.php) [function.require-once]: failed to open stream: No such file or directory in /customers/mydomain.com/mydomain.com/httpd.www/payson/administrator/components/com_virtuemart/payson_notify.php on line 105

Fatal error: require_once() [function.require]: Failed opening required '/payson/administrator/components/com_virtuemart/virtuemart.cfg.php' (include_path='.:') in /customers/mydomain.com/mydomain.com/httpd.www/payson/administrator/components/com_virtuemart/payson_notify.php on line 105

I tried your other suggestion using:

"/index.php?page=account.order_details&order_id=$order_id&option=com_virtuemart"

but this didn't help either...

Would you be so kind to send me your working payson_notify.php file so I can compare it with the code I am using?

Thanks

cjes
Joomla 1.5.25
VirtueMart 1.1.9

Lindhardsen

Yes, that would actually be nice... Just to see if that gives a clue to what is really wrong here ;)

akerman

#32
Hi,

of course. No problem. I included it here at the bottom.

A couple of things though:
1. The file include in the package in this thread ARE the ones directly taken from the production site. I just changed the Payson credentials.

2. Did you notice that there are TWO places where you need put the payson_notify.php?

In the Agentintegration (Payment method in VM) there are two paths:
$OkUrl = SECUREURL ."administrator/components/com_virtuemart/payson_notify.php";
$CancelUrl = SECUREURL ."components/com_virtuemartpayson_notify.php?order_id=".$db->f('order_id');


Reason for this is that any transaction that returns from Payson needs to access this file. A transaction that has been cancelled, had (in my installation anyway), problem to access the /administrator/ directories. Normal calls into this directory is made by the Joomla/component system (like VM), not from an outside transaction, that has lost contact with the system.

The only way I could make it work was to copy this file into the /components/ directory.

In short, same file - two places.


Oh, and if you don't run HTTPS protocol on your server, then the SECUREURL in VM config should be the same as the normal URL.


Hope it made things less blurry.  :)

Regards
Akerman

[attachment cleanup by admin]
http://stolt-akerman.com - Web & Design agency. Speshitpillt in e-shop, ecommerce and marketing.
http://infoclip.se - Swedish Antique & Used Books & Art Shop.
http://AkermansCove - Personal Portfolio
Ubuntu LAMP / Joomla 1.5.22 / VM 1.1.6 / JoomFish Contributor / Developer / Designer

cjes

Hi Akerman,

Thank you for sharing more information with us!

I have checked all again and it seems I have followed all your instructions in the correct way, but still I can not return from the Payson-https to my store. Payment, order information, etc. is accepted correctly though.

Frustrating as I am so close...!

I have made a file to document all the individual changes to make in the files you have provided, might help others I hope.

May you (or others) have any ideas what is going wrong please let us know.

Thanks

cjes

[attachment cleanup by admin]
Joomla 1.5.25
VirtueMart 1.1.9

akerman

Hi,

I took a closer look on your error report from Nov 2 above.


The file payson_notify.php is obviously read correct, because it halts on line 105 and indicates that it is not allowed to access (or can't find) 'virtuemart.cfg.php' in the /administrator directory. Even though the path (absolute URL) is given on line 105.

   /*** VirtueMart part ***/       
        require_once($mosConfig_absolute_path.'/administrator/components/com_virtuemart/virtuemart.cfg.php');


Since you seem to be running Windows please check all paths, URL and the access for Joomla! and VM in regards of how these systems (CMS and component) perceive the world.

I think that is likely to be the problem. According to your error above anyway... 

Happy hunting, and don't give up!  :)

Regards
Akerman
http://stolt-akerman.com - Web & Design agency. Speshitpillt in e-shop, ecommerce and marketing.
http://infoclip.se - Swedish Antique & Used Books & Art Shop.
http://AkermansCove - Personal Portfolio
Ubuntu LAMP / Joomla 1.5.22 / VM 1.1.6 / JoomFish Contributor / Developer / Designer

mrroberto

hi,
virtuemart payson.se module now available at softdb.eu

regards,
roberto
softdb.eu

akerman

It's good that there are alternative payment solutions available.

However, you must be aware of two things:

1. I'm going to try to make an easy, installable solution of my Payson Agentintegration for VM as described above, and it's going to be released as either CC (GNU/GPL) or for a very small administrative fee. I think it's important to give back to the community.

2. I really hope non of my code is inside your product.

Regards
Akerman
http://stolt-akerman.com - Web & Design agency. Speshitpillt in e-shop, ecommerce and marketing.
http://infoclip.se - Swedish Antique & Used Books & Art Shop.
http://AkermansCove - Personal Portfolio
Ubuntu LAMP / Joomla 1.5.22 / VM 1.1.6 / JoomFish Contributor / Developer / Designer

antracit

#37
Hi
This is funny!  ;D

I just managed to install this Payson payment module with all the files and instructions provided by akerman, Thanks!!

It's working perfect at my Blacksmith site http://www.antracit.se

Tip!
Now this day there was a Free Virtuemart plug-in of many Swedish payment systems published at JED! Seems simple and easy to use!

Bundle of Payment modules Sweden to implement into Virtuemart!
http://extensions.joomla.org/extensions/extension-specific/virtuemart-extensions/virtuemart-payment-systems/7042/details

Thanks!

//Antracit


MrCT

Hey you!

This is a slightly old thread, but..

I'm the webmaster for a small non-profit organization. I've set up VM so our members can pay their fees via internet. At first I used PayPal to receive money. However, since we don't have a credit card to confirm "us" with, PayPal is a mess to work with!

I've gone trough every step in this thread while installing the Payson module (thanks for that one, by the way!), but I have the same problem some already talked about..

Quote from: akerman on November 07, 2008, 18:58:48 PM
Since you seem to be running Windows please check all paths, URL and the access for Joomla! and VM in regards of how these systems (CMS and component) perceive the world.

I think that is likely to be the problem. According to your error above anyway... 

First; At checkout (payson logo showing, "press button to pay") I get this error:

Warning: Missing argument 1 for ps_checkout::calc_order_taxable(), called in /customers/eslovsbudoklubb.se/eslovsbudoklubb.se/httpd.www/site/administrator/components/com_virtuemart/classes/ps_checkout.php on line 1274 and defined in /customers/eslovsbudoklubb.se/eslovsbudoklubb.se/httpd.www/site/administrator/components/com_virtuemart/classes/ps_checkout.php on line 1418

I can still go to Payson and pay, and the money goes trough.

After finished payment, when redirecting back to my site, I get these error messages:

Warning: Cannot modify header information - headers already sent by (output started at /customers/eslovsbudoklubb.se/eslovsbudoklubb.se/httpd.www/site/administrator/components/com_virtuemart/payson_notify.php:1) in /customers/eslovsbudoklubb.se/eslovsbudoklubb.se/httpd.www/site/administrator/components/com_virtuemart/payson_notify.php on line 36

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /customers/eslovsbudoklubb.se/eslovsbudoklubb.se/httpd.www/site/administrator/components/com_virtuemart/payson_notify.php:1) in /customers/eslovsbudoklubb.se/eslovsbudoklubb.se/httpd.www/site/libraries/joomla/session/session.php on line 423

Warning: Cannot modify header information - headers already sent by (output started at /customers/eslovsbudoklubb.se/eslovsbudoklubb.se/httpd.www/site/administrator/components/com_virtuemart/payson_notify.php:1) in /customers/eslovsbudoklubb.se/eslovsbudoklubb.se/httpd.www/site/libraries/joomla/session/session.php on line 426

Warning: require_once() [function.require-once]: Unable to access /administrator/components/com_virtuemart/virtuemart.cfg.php in /customers/eslovsbudoklubb.se/eslovsbudoklubb.se/httpd.www/site/administrator/components/com_virtuemart/payson_notify.php on line 105

Warning: require_once(/administrator/components/com_virtuemart/virtuemart.cfg.php) [function.require-once]: failed to open stream: No such file or directory in /customers/eslovsbudoklubb.se/eslovsbudoklubb.se/httpd.www/site/administrator/components/com_virtuemart/payson_notify.php on line 105

Fatal error: require_once() [function.require]: Failed opening required '/administrator/components/com_virtuemart/virtuemart.cfg.php' (include_path='.:/usr/share/php') in /customers/eslovsbudoklubb.se/eslovsbudoklubb.se/httpd.www/site/administrator/components/com_virtuemart/payson_notify.php on line 105


I'm kind of stuck now! I don't really know what to do.
Any help is greatly appreciated!

//MrCT