Author Topic: Error: Credit Card Type not found. Using only PayPal  (Read 7625 times)

DutchDisturbed

  • Beginner
  • *
  • Posts: 14
Error: Credit Card Type not found. Using only PayPal
« 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

DutchDisturbed

  • Beginner
  • *
  • Posts: 14
Re: Error: Credit Card Type not found. Using only PayPal
« Reply #1 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...

aneuschitzer

  • Beginner
  • *
  • Posts: 3
    • One Click Wonder
Re: Error: Credit Card Type not found. Using only PayPal
« Reply #2 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
I use Virtuemart to sell my time tracking tool: The One Click Wonder at https://www.one-click-wonder.net

DutchDisturbed

  • Beginner
  • *
  • Posts: 14
Re: Error: Credit Card Type not found. Using only PayPal
« Reply #3 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

DutchDisturbed

  • Beginner
  • *
  • Posts: 14
Re: Error: Credit Card Type not found. Using only PayPal
« Reply #4 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.

Code: [Select]
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.
Code: [Select]
window.addEvent("domready", function() {
the resulting code changed from this:
Code: [Select]
$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:
Code: [Select]
$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

  • Beginner
  • *
  • Posts: 19
    • Unifed Systems Management
Re: Error: Credit Card Type not found. Using only PayPal
« Reply #5 on: October 31, 2011, 19:52:29 pm »
Has anyone tried this?  Any validation?  I have the same issue!

dmdiff

  • Beginner
  • *
  • Posts: 1
Re: Error: Credit Card Type not found. Using only PayPal
« Reply #6 on: November 07, 2011, 19:24:32 pm »
Hi !

I try this but i have the same error message !

Acardenes

  • Beginner
  • *
  • Posts: 29
Re: Error: Credit Card Type not found. Using only PayPal
« Reply #7 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.

ohonig

  • Beginner
  • *
  • Posts: 2

Acardenes

  • Beginner
  • *
  • Posts: 29
Re: Error: Credit Card Type not found. Using only PayPal
« Reply #9 on: November 16, 2011, 16:18:44 pm »
Thanks, I'll try this asap.

francisuan

  • Beginner
  • *
  • Posts: 7
Re: Error: Credit Card Type not found. Using only PayPal
« Reply #10 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.