News:

Looking for documentation? Take a look on our wiki

Main Menu

Pay & Read Payer for VISA, MasterCard, Diners

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

Previous topic - Next topic

mrroberto

hi,
if you still need, contact me info (at) softdb.eu

regards,
roberto

Lindhardsen

Quote from: akerman on August 06, 2008, 15:27:30 PM
Is this soon enough?  ;)
I've made a zip file with all the necessary files in same catalogue structure as they are in Joomla!
In there you'll also find a 'Readme.txt'
I've not included the language file, since I've made multiple changes you wouldn't recognize them...  ;)  But that's no biggie, just add the VM language parameters into your language files. You'll see what they are called, as soon as you look inside the PHP files.
PS. The Payson 'Agentintegration' is nothing you just install and then it works.
It has to be properly tested, and you really have to understand the relationship between the files and where in the decision tree (procedure) you are at, at the different stages.
I recommend a lot of careful reading of all the Payson documents you can retrieve from their site.
And finally; I can not give any dedicated support on this, but am happy to try answering any questions through this forum.
Regards
Akerman

I'm just about to start implementing this, and will use your file.
Surprised that these does not seem to be more people/sites using Payson integration???

Just want to ask if there is any updates to the files, or any new info you want to share?

Thanks in advance
/Jan

akerman

#17
....there is.  ;D

However, I haven't had time to test them fully and also I'm in the project of maybe, just maybe turning this into an installable, user-friendly and fully translated, Joomla/VM Extension. (Which will cost a little, but not much. Many hours have gone into this...  ;) )

Unfortunately, VM has so many flaws in other areas (like invoice and tax calculation) that right now, that seems to consume a lot of time.  :P 

I'm running a production site today with the implementation in this thread, and it still works fine.


And yes, I think it's ũber-strange that both users of eCommerce sites AND Payson themselves are so quiet about this Agentintegration.

Using your own Swedish Internetbank to pay with IS the most secure solution after all. (Especially if you have SEB bank, who have won international prizes for their secure Internet solution.)

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

Lindhardsen

OK, I will go ahead with the current files, and hope for the best ;-)

If and when you get an installer put together, I will be more than interested in paying a smaller amount, just to support your work.

/Jan

Naesstrom

Just wanted to say that I agree with Jan!

Im about to start my shop for real and Payson is according to me the best solution for payment since they are fast, secure and has a low fee!

So getting a module working with their site would be really really nice, I'll give youre files now a go but please keep us posted in any progress... you do know that you'll be voted hero of the year for making this... right :D

Lindhardsen

Can anyone help me, I'm not smart enough to figure out basic PHP problems.

After I have made a payment though Payson, Iäm redirected back to my site from payson.
But my website returns this error:
Quote

Warning: require_once(/administrator/components/com_virtuemart/virtuemart.cfg.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/freemyphone/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:/usr/share/pear') in /var/www/freemyphone/administrator/components/com_virtuemart/payson_notify.php on line 105


I realize that the problem is that the script is looking for:
"/administrator/components/com_virtuemart/virtuemart.cfg.php", but this is not he full path, therefore the file is not found.

If I look in line 105 of the payson_notify.php it says:
Quoterequire_once( $mosConfig_absolute_path. '/administrator/components/com_virtuemart/virtuemart.cfg.php');

If is enter the full path here it works, so it seems like the "$mosConfig_absolute_path" variable is not set.
What have I done wrong, and if the variable is really not set, wouldn't the error has come in an earlier stage of the file (lots of references before line 105)???

Any inputs is highly appreciated!

/Jan

akerman

Hi,

you never wrote what the full path is supposed/expected to be?

As for the WWW path to your site I understand that it is a subdirectory under www/ ?

Are the settings in VM reflecting that scenario? (URL and Secure URL?)


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

Lindhardsen

The full path should be:
/var/www/freemyphone/administrator/components/com_virtuemart/virtuemart.cfg.php

I Asume that "$mosConfig_absolute_path." should contain: /var/www/freemyphone ?

Everything else on my site seems to work fine, so I guess that the problem is isolated to this payson file?

My URLs both point to: http://freemyphone.se/ and not the /var/www/freemyphone physical file structure. this url on the other hand has /var/www/freemyphone as it's home directory.

akerman

Hi,

you're correct. Your URL are fine and yes, if the rest of VM works fine the problem is most likely related to Payson only. (I was obviously a bit tired yesterday...  :-\)



I'll try to have a look at this during the day... I'll get back to you this evening (local time).

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

Lindhardsen


akerman

...and I'm back!  :)

A quick look and some testing I discovered that I have totally forgot to mention the 'payson_notify.php' hack I did.

I actually forgot to document it myself. Sorry that it should pop up like this. :(


Ok, the thing is that when customer returns from Payson, he/she needs to land on the order page. Why? Well, either there is a 'Download' waiting there or maybe he/she needs to review/print the order just placed.

Since I made most of the testing in a live production environment, I made changes to the 'PayPal' files and adopted some of them to the 'Payson' procedures. 

The Joomla! system I was working on at the time, had set the VM menu Itemid to #60. Of course this can be different in other installations.


Look at 'payson_notify.php' at line 248 & 261 where the Itemid=60:

if( PAYSON_DEBUG == "1" ){
echo "<p><a href=\"".SECUREURL."index.php?page=account.order_details&order_id=".$order_id."&option=com_virtuemart&Itemid=60>";
echo $VM_LANG->_PHPSHOP_ORDER_LINK ."</a></p>";
}
// Update order status and inform customer by email
$d['notify_customer'] = 'Y';
require_once ( CLASSPATH . 'ps_order.php' );
$ps_order= new ps_order;
$ps_order->order_status_update($d);
$ostemp = $d['order_status'];
debug_msg("5. Order status change to $ostemp");
}else {
// Order may NOT be treated again but redirect to account detail page
// This can happen if user click payson back to store button.
$rdurl = $mosConfig_live_site."/index.php?page=account.order_details&order_id=$order_id&option=com_virtuemart&Itemid=60";




Change Itemid=60 into your specific VM Itemid in these two lines.


You'll find the Joomla! Itemid for VM in the Joomla! backend Menu Manager where you defined the menuitem for your shop. Just look to the right. (See pic below).

It is more than likely that this is causing your problem.


Sorry for the inconvenience. I'll tidy this up before deploying next time. It was good that you discovered it!  :D

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

Lindhardsen

I don't have a menu pointing to the web shop front page. Do I need to do so?
My Menu Items point specifically to categories in the VM shop. Would it work to just use one of these menu items, or do I have to add a new menu item that points to VM front?

akerman

Hi,

No need to add VM to a new menuitem

I just did some additional testing, and by removing the 'Itemid' altogether and just leave the component VM as the path, makes the order to show up on a separate page, with no modules/menus (except main menu of course if it is on top...).

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

Of course you can assign one of your category pages instead. Just look at the URL in the browser and try to identify the path. Then include that into 'payson_notify.php' instead.
Then it's likely you will get that page to contain the order AND the modules you have published to that specific category page.


Hope you understand what I mean...  ;)


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

cjes

Hi Akerman

Thanks for all the information you have provided to setup the payment for Payson.

I have followed all your instructions, but unfortunately it didn't completely work for me...

For testing purposes I have installed Joomla in subdirectory as my site is already running live and I can not test it there. Maybe the problem has to do with this, I am not sure.

My problem is that I get so far as placing an ordering and going through all parts in the Cart, but when getting to the 'Thank you for your order' page i get the following error message:

Parse error: syntax error, unexpected '@' in /customers/mydomain.com/mydomain.com/httpd.www/payson/components/com_virtuemart/themes/default/templates/pages/checkout.thankyou.tpl.php(61) : eval()'d code on line 36

Do you have any ideas what I am doing wrong?

Thanks

I am running Joomla 1.5.7 & VM 1.1.2
Joomla 1.5.25
VirtueMart 1.1.9

akerman

Hi,

on top of my head, the quick answer would be that there is something wrong in the 'checkout.thankyou.tpl.php' file. since the error directly points out that a '@' sign is inserted there.

This part in that file has nothing to do with the Payson payment. If, on the other hand that file (thankyou) would have executed a few more rows and come back with a text like:
"The code of the payment method 'payment_method_name' contains a Parse Error!Please correct that first" then I would set it in connection with Payson, if that is used as payment method in this transaction. But as I said, this comes further down. At line 36 you have the VM legacy code to present a link to the VM Account page (to view the order).

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