VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Virtuemart 1.1 Development (Archiv) => Quality & Testing VirtueMart 1.1.x => Topic started by: aravot on October 11, 2010, 20:06:27 PM

Title: PayPal Pro - Checkout with Credit Card not working
Post by: aravot on October 11, 2010, 20:06:27 PM
PayPal Pro - Checkout with Credit Card not working, following error is shown.

QuoteInvalid Credit Card Number or Credit Card Verification Code.

Error: Invalid Credit Card Number or Credit Card Verification Code.
Error: Failur in Processing the Payment (ps_paypal_api)

Invalid Credit Card Number or Credit Card Verification Code.
Error: PayPal returned: Security header is not valid

(http://www.protechsystems.us/stuff/joomla/vm/vm-paypal-html-credit-error.png)

Following notice are shown on the checkout page.
Quote
Notice: Undefined index: ppex_token in administrator/components/com_virtuemart/classes/payment/ps_paypal_api.php on line 345

Notice: Undefined index: ppex_userdata in administrator/components/com_virtuemart/classes/payment/ps_paypal_api.php on line 347
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: aravot on October 27, 2010, 22:12:20 PM
No, everything in Quality and Testing section relates to default Virtuemart feature and not 3rd party extensions.

Not sure if default Virtuemart PayPal Pro is the same as the one in your link, if the one in the link is better (it seems so) maybe VM team with permission of the developer can incorporated changes into the core.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: zanardi on October 28, 2010, 10:13:24 AM
Some bugs in PayPal API were fixed a couple of days ago; i will create a new BETA package by the end of the week, so we can test it again.

Thank you.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: DRACULINOS on November 20, 2010, 12:35:02 PM
Problem confirmed with the ps_paypal_api.php of the 1.1.6 Beta4 too .
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: cjes on December 03, 2010, 19:12:18 PM
I just upgraded to 1.1.6 (official release) and have the exact same problem.

Has anyone found a solution for this yet?
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: winzor on December 04, 2010, 11:32:43 AM
How much would it cost to speed this up?  I was planning on going live this weekend but I upgraded to 1.1.6 and now have this problem.  I don't really want to downgrade.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: zanardi on December 04, 2010, 18:04:38 PM
@winzor:
I wrote you a Personal Message.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: bowie on December 07, 2010, 10:10:25 AM
I am having the same problem in 1.1.6
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: bowie on December 20, 2010, 05:27:41 AM
Quote from: zanardi on October 28, 2010, 10:13:24 AM
Some bugs in PayPal API were fixed a couple of days ago; i will create a new BETA package by the end of the week, so we can test it again.

Thank you.

Any news on this?
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: onlinestorenut on December 20, 2010, 05:42:45 AM
Hi,

I was just wondering if there's any news on getting the new Paypal API working?

Cheers,
Bob.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: zanardi on December 20, 2010, 08:07:12 AM
@bowie, @bobjenson
some bugs were fixed AND included in VirtueMart 1.1.6, which has been released a while ago. Unfortunately there are a few other bugs left, which i am working on in these days. Sorry for delay but i have little spare time, if anyone can contribute it would be great.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: QubeSys Technologies on December 20, 2010, 09:42:18 AM
Im using http://www.vantagetechnic.com/products/paypalpro.xml and it works great!
Not sure about the one, which comes with Virtuemart.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: zanardi on December 20, 2010, 10:13:42 AM
I'll also try to post individual fixes, so everyone can include them even BEFORE 1.1.7 release. I'll open a new thread for this.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: onlinestorenut on December 20, 2010, 23:22:56 PM
Quote from: zanardi on December 20, 2010, 08:07:12 AM
@bowie, @bobjenson
some bugs were fixed AND included in VirtueMart 1.1.6, which has been released a while ago. Unfortunately there are a few other bugs left, which i am working on in these days. Sorry for delay but i have little spare time, if anyone can contribute it would be great.

I'd also like to express my thanks re your efforts.

Also, I'm not really sure if I need the New Paypal API. All I want is my customer to choose Paypal then get redirected to the Paypal site to pay via CC or via their Paypal account. Should I just use the Legacy version?
I think I'll be using a standard merchant paypal account, not Paypal Pro.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: onlinestorenut on December 23, 2010, 00:23:15 AM
Quote from: zanardi on December 21, 2010, 14:03:58 PM
@bobjenson:
yes, you may still use legacy PayPal, there was just some minor issues with coupons and taxes, but apart from that everything is fine.

Thanks, I'll use the Legacy one for now. By the way, upon testing the new API version, I'm keen on using that one, once the bugs are ironed out :)
Nice interface, sandbox easier to setup, nice logos on the checkout etc.

I'll try to find a bug report post on the new api and add my findings.

Cheers,
Bob.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: saviB on January 15, 2011, 09:13:23 AM
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...
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: zanardi on January 17, 2011, 14:42:01 PM
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.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: saviB on January 19, 2011, 05:50:55 AM
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.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: Zwilla on January 22, 2011, 03:06:40 AM
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
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: zanardi on January 22, 2011, 12:33:18 PM
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.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: AH on January 22, 2011, 12:36:33 PM
Any news on the UK paypal pro support??
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: Zwilla on January 22, 2011, 13:25:21 PM
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
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: Zwilla on January 23, 2011, 15:24:46 PM
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
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: zanardi on January 23, 2011, 17:00:07 PM
@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.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: AH on January 23, 2011, 17:48:01 PM
Zanardi, please can you tell me if this will support the UK for PayPal Pro?
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: zanardi on January 23, 2011, 19:14:02 PM
@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.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: AH on January 24, 2011, 14:20:35 PM
Zanardi

Thanks for the reply, I cannot take the risk with my live sites at present, I will wait a few months.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: zanardi on January 24, 2011, 15:59:02 PM
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.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: xyloon on January 27, 2011, 18:41:21 PM
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
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: zanardi on January 28, 2011, 09:28:51 AM
Not yet. I am working on it, but as usual this happens in my spare time so you should be patient. Sorry.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: sech on February 04, 2011, 09:01:10 AM
Don't know if this helps in tracking down this problem but...

Also getting errors:
Invalid Credit Card Number or Credit Card Verification Code.
Error: Invalid Credit Card Number or Credit Card Verification Code.
Error: Failure in Processing the Payment (ps_paypal_api)
Invalid Credit Card Number or Credit Card Verification Code.

when PayPal API is the only payment method (and therefore the payment method selection is skipped in the checkout process).

The express checkout option, if enabled, works fine, but not a solution for me as I want to collect user's shipping info on my site.

If I also enable PayPal Legacy as a payment method, then the checkout process does not skip the payment selection step. Now I can select the PayPal API option, and it all works fine.

However, it also displays options for PayPal legacy, which works OK, but the PayPal site requires me to use (or register) a PayPal account, and does not give me an option to pay by credit card without a PayPal account in the way that the API version does.

Enabling PayPal Legacy as a second payment option also allows the user to select Credit Card as another payment method. I have no idea where this comes from - it's not the credit card option that is listed in the backend config - and if selected generates the same errors above.

As an interim measure until VM1.1.7 comes along I'd be happy to have that Credit Card payment method suppressed. That way I can at least name the payment methods "Credit Card via PayPal" (for the API), and "With PayPal account" (for legacy), or some such, and not have the user too confused.

I'm using Joomla 1.5.22, VM1.1.6, and a PayPal sandbox.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: zanardi on February 04, 2011, 09:51:27 AM
@sech: i only have one warning, PayPal Legacy DOES NOT require for the customer to have a PayPal account. When the customer gets to PayPal page, he can login with his account OR he can click on "Continue" to pay with credit card.
About all the rest, i am working on PayPal API payment to make it more clear on functional, don't expect it in 1.1.7, though (1.1.7 will be out today or tomorrow to fix an urgent security issue).
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: sech on February 04, 2011, 10:30:51 AM
Probably something to do with my PayPal setup. The legacy payment method takes me through to the live PayPal site, where the only options are to login to PayPal or create a new PayPal account. The API method is configured for the PayPal sandbox, which does offer an option to continue and pay with CC without a PP account.

Is there any obvious reason why the extra 'Credit Card' option appears if I select both API and Legacy? If I could eliminate this, I would have a satisfactory solution.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: zanardi on February 04, 2011, 14:13:55 PM
Ok, since this is not coding related, you should better ask this in the PayPal-related forum on this site (under Payment methods).
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: mcongosto2 on February 15, 2011, 18:30:18 PM
If I use New Paypal i get this:

Invalid Credit Card Number or Credit Card Verification Code.
Error: Invalid Credit Card Number or Credit Card Verification Code.
Error: Failure in Processing the Payment (ps_paypal_api)
Invalid Credit Card Number or Credit Card Verification Code.

And if i use t he old one I get this

500 - No valid database connection:

Using latest VM 1.1.7

So i cannot sell. I am 100% stuck. I cannot believe this, so frustrating. How come such basic features does not work out of the box??? is this the leading ecommerce application for Joomla??
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: zanardi on February 15, 2011, 21:34:26 PM
The new PayPal payment method needs to be configured with some attention, you should better ask in PayPal dedicated forum on this site.

http://forum.virtuemart.net/index.php?board=74.0

But the error you report for PayPal Legacy "No valid database connection" is totally new, i never heard of it, so i think it is something completely unrelated. As far as i know, PayPal Legacy is quite stable since some time now, and has only some issue in 1.1.5 related to the use of COUPON with TAX.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: ssaarroo on February 16, 2011, 00:40:32 AM
has the problem been fixed in the VM 1.1.7?
I am still in 1.1.6 and with the same problem shown up at first in this post.
Also I can see there is an other post where people are trying to fix it:
https://forum.virtuemart.net/index.php?topic=81649.0

thanks a lot for your help Zanardi and I hope that the link could help you if the problem has not been solved yet
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: zanardi on February 16, 2011, 10:01:17 AM
1.1.7 is just a security release for a specific vulnerability, it includes a couple of other fixes but is not much different from 1.1.6.
Thank you for reporting that link, i will follow it.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: 4lane on February 16, 2011, 18:28:07 PM
How close are you to fixing the original issue? I've been holding off for a while hoping you might be done in time for my shop, but I may have to go with a different solution if the fix isn't imminent.

I know you're doing this in your off-time, Zanardi, so thanks in advance.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: zanardi on February 17, 2011, 09:06:36 AM
I am really sorry but i cannot promise any date. Not only i follow Virtuemart in my spare time, but there are also other VM bugs which i've been fixing lately. I'll do my best but even so it could still be weeks.

P.S. amongst all the people which are experiencing issues, isn't there anyone who can pick some code and give back some fixes? Virtuemart is a community software, after all, you should not just wait for a single developer to fix everything.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: 4lane on February 17, 2011, 22:15:55 PM
No worries, thanks for your help. For now I'm going to shut off the Credit Card payment option and just use paypal express. Another person has suggested some modifications to sidestep the Credit Card aspect until that is resolved. You can see those suggestions here: http://forum.virtuemart.net/index.php?topic=77065.30
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: zanardi on February 18, 2011, 22:12:30 PM
I saw proposed fix by @piperpilot, i will start by including that in the code.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: khancock on March 19, 2011, 21:17:55 PM
Just wondering where this problem sits? I'm using VM 1.1.17a and still having CC errors.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: cmatte on May 05, 2011, 00:00:27 AM
I still have the same issue here with std VM 1.1.8 and J! 1.5.23.
I'm using San
Quotedbox now because I'm still working on the website to go into live mode.
The issue is exactly the same. As soon as you choose confirm order you get:
Quote
Invalid Credit Card Number or Credit Card Verification Code.
Errore: Invalid Credit Card Number or Credit Card Verification Code.
Errore: Elaborazione Pagamento Fallita (ps_paypal_api) [translated: payment elaboration failed]
Invalid Credit Card Number or Credit Card Verification Code.
Is there some fix for this?
Btw, the options I set are the following:
Payment Type    sale   
Check for CVV?        no
Enable Express Checkout button?     no
Use Shipping Information?    yes   
Enable Direct Payment?     no
Only verified accounts accepted?    no
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: aravot on June 24, 2011, 22:45:41 PM
Strange issue, I remember testing this it was fixed but today I installed a fresh copy of VM 1.1.9 and tested PayPal API it doesn't work, I get following error message.

QuoteError: Credit Card Number not found!
Error: PayPal returned: Tax total is invalid.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: yobokkie on June 25, 2011, 10:08:41 AM
So is there any solution for this yet? I also have a customer breathing down my neck for something that was supposed to be working but isn't. The URL is Http://earthafricacurio.com and it keeps giving the tax error and failing, it's set to sand box mode so you can test it if you like. The OLD legacy mode isn't working properly either, it's listed as paypal underneath with the other methods.
Again I have no tax rates listed.

If i select any African or Asian Country it seems to work, haven't tested them all.
If I select America or Europe it returns the Tax error
IF I turn virtual tax on it says "Pay Paypal returend: " (nothing else)

I was encountering this error so I reinstalled everything, including wiping over my very carefully editing zone shipping mode which I'm going to have to restore once I fix this but this is a very urgent error, Is there anyone out there who could help?

If a administrator user name and password would help someone see what's happening I can provide.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: Stonedfury on August 24, 2011, 20:53:51 PM
There is a tax fix. Search the forums for paypal tax. It's an issue with the way VM rounds the integer.
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: ralfeez on September 07, 2011, 21:36:36 PM
I am getting the same error in Ver.1.1.9 and J1.5.23.
thanks,
Ralph
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: mvvessem on December 12, 2011, 15:02:26 PM
I still have the same problem with J:1.5.25 and V:1.1.19. Does anybody have a solution?
Title: Re: PayPal Pro - Checkout with Credit Card not working
Post by: useris on December 17, 2011, 17:06:01 PM
Hi,

Any updates regarding this? I test on two diferent servers and it does nto work. But in sandbox it works fine.