We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bbd2de commit 0136fa5Copy full SHA for 0136fa5
app/code/core/Mage/Payment/Helper/Data.php
@@ -43,6 +43,10 @@ public function getMethodInstance($code)
43
{
44
$key = self::XML_PATH_PAYMENT_METHODS . '/' . $code . '/model';
45
$class = Mage::getStoreConfig($key);
46
+ if (is_null($class)) {
47
+ Mage::logException(new Exception(sprintf('Unkown payment method with code "%s"', $code)));
48
+ return false;
49
+ }
50
return Mage::getModel($class);
51
}
52
0 commit comments