News:

Looking for documentation? Take a look on our wiki

Main Menu

Error: Credit Card Type not found. Using only PayPal

Started by DutchDisturbed, October 17, 2011, 09:27:55 AM

Previous topic - Next topic

DutchDisturbed

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

DutchDisturbed

Never mind, suddenly my original install is not working either... this is very frustrating, i think i'm going for another webshop...

aneuschitzer

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
I use Virtuemart to sell my time tracking tool: The One Click Wonder at https://www.one-click-wonder.net

DutchDisturbed

#3
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

DutchDisturbed

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?

wahl04

Has anyone tried this?  Any validation?  I have the same issue!

dmdiff


Acardenes

Tried this code and didn't work. I need a solution as I have 2 payment options, one of them being Paypal new api.



francisuan

I fixed mine by changing the "Payment Method Type" to "HTML-Form based" in the paypal (new api) payment method.