News:

Looking for documentation? Take a look on our wiki

Main Menu

PayPal Pro - Checkout with Credit Card not working

Started by aravot, October 11, 2010, 20:06:27 PM

Previous topic - Next topic

saviB

VM 1.1.6

Any news on this? I'd like to use the API as legacy gives me problems:

http://forum.virtuemart.net/index.php?topic=80537.msg265824#msg265824

And I couldn't get the b-planet patch to work. I really need some help here - the site is unusable (for my client) without PayPal. And - I can't have customers getting Purchase orders when they cancel the order or use the back button from the PayPal page..

I'm open to anything. Hacks, modules, patches, even pay stuff. I just need this to work...

zanardi

I am so sorry, i planned to fix some bugs during last weeks but then an huge amount of day work let me unable to do anything else. I am still going to fix them but i cannot promise any date, yet.
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter

saviB

Hi zanardi,

Thanks for the update. I just want to take a minute to thank you and the entire VM team for creating this outstanding product. I understand completely how much time, energy, and emotions go into work like this. I anxiously await the fixes, but in the mean time - Great Job. Thank You.

Zwilla

I have the same problem. I fixed with http://www.vantagetechnic.com and then i put the checkout.index.php from the "Patch-VirtueMart-1.1.5-1.1.6.j15" in the origin folder.

Thats it. without any errors now. Why? I don´t know.

bye and thx

Zwilla

zanardi

That's interesting... Vantage Technic offers a PayPal Pro integration made with some help from Soeren (as stated on Vantage Technic site).
Soeren later includes PayPal Pro in VirtueMart itself and Vantage Technic stops developing the module (May 2010 is the last update).
How is it possible that the old module works and the new one does not? Seems like new bugs have been introduced afterwards.
Thank you for pointing this out, it may helps us tracking the issue. I suggest other people to use the same module as Zwilla and report any result.
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter

AH

Regards
A

Joomla 3.10.11
php 8.0

Zwilla

ok all seems ok, one other error i get is, when i list all orders:

Warning: Call-time pass-by-reference has been deprecated in ...../administrator/components/com_virtuemart/classes/ps_order.php on line 80
and same on line 94, 128, 180, 206

inside ps_order.php on line is this:

80:  if( !$authorize->capture_payment( &$d )) {return false;   }
94:  if( !$paymentObj->capture_payment( &$d )) {return false;   }
128: if( !$pfp->capture_payment( &$d )) {return false;          }
180: if( !$payment->void_authorization( &$d )) {return false;   }
206: if( !$payment->do_refund( &$d )) {$vmLogger->debug('failed to do refund');
   return false;}

I think that this problem comes from the variable "&$d" at this moment i don´t know
how we can fix this.

Other side, the store shows only this error´s but nothing looks wrong.

The file: "ps_order.php" use this two files:
payment/ps_authorize.php
payment/ps_authorize.cfg.php

Now i look inside this ones.

hmmm... i find this:

http://mrfoo.de/archiv/282-Warning-Call-time-pass-by-reference-has-been-deprecated.html

i try it later, there are 3 methods to eliminate the problem.

bye

Zwilla

Zwilla

OK... I found the error:

replace inside: ps_order.php all       &d$

with                                    d$

thats it.

My skill in php is like zero. I don´t know what I do, but i found on several website´s that the use of "&" can bring an error and without not. For this I was replacing them an the error is away.

Bye an have an nice sunday

Zwilla

zanardi

@Zwilla:
not "d$" but "$d". Yes "pass-by-reference" means using &$d instead and it's deprecated, i.e. will be removed in future versions of PHP
But this IS NOT AN ERROR, just a warning, so everything should work fine. I will start from Vantage Technique module.
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter

AH

Zanardi, please can you tell me if this will support the UK for PayPal Pro?
Regards
A

Joomla 3.10.11
php 8.0

zanardi

@Hutson:
i am sorry but i don't know the answer. I haven't yet released any fixed version of PayPal API payment, i just commented that the module used by Zwilla can be useful, but it's just a suggestion like "try and see if it works".
I cannot guarantee anything, i still have not enough knowledge of this payment module.
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter

AH

Zanardi

Thanks for the reply, I cannot take the risk with my live sites at present, I will wait a few months.
Regards
A

Joomla 3.10.11
php 8.0

zanardi

Of course i wasn't suggesting to use it on live sites, it would be great if someone can test it on non-production sites. I will post on this forum every time i fix something in PayPal API.
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter

xyloon

Hello

I have the same problem... is there a nex version of paypal_api ?  :'(

Best regards

Joomla 1. 5 .14
Virtuemart 1.16
Php 5.2.17

zanardi

Not yet. I am working on it, but as usual this happens in my spare time so you should be patient. Sorry.
--
Francesco (zanardi)
http://extensions.gibilogic.com
@gibilogic on Twitter