VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Payment VM 1.1 => PayPal / PayPal Pro VM 1.1 => Topic started by: DutchDisturbed on October 17, 2011, 09:27:55 AM

Title: Error: Credit Card Type not found. Using only PayPal
Post by: DutchDisturbed on October 17, 2011, 09:27:55 AM
Guys I've just done a clean install of Joomla and Virtuemart and I am using the new paypal api and a bank transfer option for payment. During checkout I get the error that the credit card type is not found. (I've seen a couple more similar problems, though they were using creditcards as well)

For me the strange thing is that I had it working, without hacking or anything, on a different installation. Therefore my question is which files/database tables are associated with this? When I know this I might be able to replace them with the working files of my other install! (or tell me why that is wrong :P)

thnx!


ciao
Title: Re: Error: Credit Card Type not found. Using only PayPal
Post by: DutchDisturbed on October 17, 2011, 18:35:12 PM
Never mind, suddenly my original install is not working either... this is very frustrating, i think i'm going for another webshop...
Title: Re: Error: Credit Card Type not found. Using only PayPal
Post by: aneuschitzer on October 17, 2011, 23:33:27 PM
While having a look in this forum I realize how widespread that problem is.

I had it solved for me, have a look here:
http://forum.virtuemart.net/index.php?topic=87409.msg302809#msg302809

Have a lot of fun

Angelo
Title: Re: Error: Credit Card Type not found. Using only PayPal
Post by: DutchDisturbed on October 23, 2011, 21:59:31 PM
Yeah I saw that solution!
I don't know much about the set-up so i've asked my provider about this. They responded that they needed more information about the ip's of paypal since apperantly they've been blocking those before...

edit: suppose this can't be the solution though since the express button seems to work fine!

thnx
Title: Re: Error: Credit Card Type not found. Using only PayPal
Post by: DutchDisturbed on October 25, 2011, 21:07:56 PM
Guys I had somebody looking at the problem and he has found a solution to the problem! In the code there is a section what should force the page to fully load. This does not function properly! Therefore the script that makes the value change to 2 is not able to run.

window.addEvent("click", function() {
if($("paypalExpressID_ecm").checked)
{
$("paypalExpress_ecm").value="2";
}
else
{
$("paypalExpress_ecm").value="";
}
});


It could be that the mootools library used in virtuemart for this function needs an update. But here's how he has solved the problem:

In the get_payment_method_paypal_ex.tpl file he has uncommented the following event.
window.addEvent("domready", function() {

the resulting code changed from this:
$html = '<img id="paypalLogo" src="'.$paypal_buttonurls[$lang_iso].'" alt="PayPal Checkout Available" border="0" style="cursor:pointer;" /></a>';
$html .= '<script type="text/javascript">window.addEvent("domready", function() {
$("paypalLogo").addEvent("click", function() {
window.open(\''.$paypal_infolink[$lang_iso].'\',\'olcwhatispaypal\',\'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=500\');
});

window.addEvent("click", function() {
if($("paypalExpressID_ecm").checked)
{
$("paypalExpress_ecm").value="2";
}
else
{
$("paypalExpress_ecm").value="";
}
});
});
</script>';


To this:
$html = '<img id="paypalLogo" src="'.$paypal_buttonurls[$lang_iso].'" alt="PayPal Checkout Available" border="0" style="cursor:pointer;" /></a>';
$html .= '<script type="text/javascript">';
//$html .= 'window.addEvent("domready", function() {';
$html .='
$("paypalLogo").addEvent("click", function() {
window.open(\''.$paypal_infolink[$lang_iso].'\',\'olcwhatispaypal\',\'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=400, height=500\');
});

window.addEvent("click", function() {
if($("paypalExpressID_ecm").checked)
{
$("paypalExpress_ecm").value="2";
}
else
{
$("paypalExpress_ecm").value="";
}
});';
//$html .= ' });';
$html .= '
</script>';


Any remarks?
Title: Re: Error: Credit Card Type not found. Using only PayPal
Post by: wahl04 on October 31, 2011, 19:52:29 PM
Has anyone tried this?  Any validation?  I have the same issue!
Title: Re: Error: Credit Card Type not found. Using only PayPal
Post by: dmdiff on November 07, 2011, 19:24:32 PM
Hi !

I try this but i have the same error message !
Title: Re: Error: Credit Card Type not found. Using only PayPal
Post by: Acardenes on November 14, 2011, 15:47:30 PM
Tried this code and didn't work. I need a solution as I have 2 payment options, one of them being Paypal new api.
Title: Re: Error: Credit Card Type not found. Using only PayPal
Post by: ohonig on November 16, 2011, 15:22:13 PM
try this:

http://forum.virtuemart.net/index.php?topic=81620.msg306862#msg306862
Title: Re: Error: Credit Card Type not found. Using only PayPal
Post by: Acardenes on November 16, 2011, 16:18:44 PM
Thanks, I'll try this asap.
Title: Re: Error: Credit Card Type not found. Using only PayPal
Post by: francisuan on December 23, 2011, 00:32:43 AM
I fixed mine by changing the "Payment Method Type" to "HTML-Form based" in the paypal (new api) payment method.