PayPal Pro - Checkout with Credit Card not working

<< < (6/10) > >>

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.

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

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.

Navigation

[0] Message Index

[#] Next page

[*] Previous page