I am using this MiGS Payment Gateway plugin. I input all fields in the plugin settings ( System > Configuration > Payment Methods > MIGS Payment Gateway ) and enabled the settings. I use One Page Checkout and disabled Multishipping.
However, after I pressed Checkout > Checkout as Guest > filled in basic information, address, shipping method. However, when I reached Step 5, it said:
Your order cannot be completed at this time as there is no payment methods available for it.
What did I miss ? Anything I should provide for you guys to debug?
Using Magento 1.9.1
UPDATE I updated the info.phtml
of app/design/frontend/{theme_name}/{package_name}/template/checkout/onepage/payment/
to have the following codes:
$payments = Mage::getSingleton('payment/config')->getActiveMethods();
$methods = array(array('value'=>'', 'label'=>Mage::helper('adminhtml')->__('--Please Select--')));
foreach ($payments as $paymentCode=>$paymentModel) {
$paymentTitle = Mage::getStoreConfig('payment/'.$paymentCode.'/title');
$methods[$paymentCode] = array(
'label' => $paymentTitle,
'value' => $paymentCode,
);
}
print_r($methods);
It successfully shows the MIGS as "Active methods". Why does One Page Checkout not available to show payment methods?
The output of the print_r()
is as follow:
Array (
[0] => Array ( [value] => [label] => --Please Select-- )
[free] => Array ( [label] => No Payment Information Required [value] => free )
[purchaseorder] => Array ( [label] => Purchase Order [value] => purchaseorder )
[banktransfer] => Array ( [label] => Bank Transfer [value] => banktransfer )
[cashondelivery] => Array ( [label] => Cash On Delivery [value] => cashondelivery )
[hosted_pro] => Array ( [label] => Paid by Credit Card [value] => hosted_pro )
[migsvpc_server] => Array ( [label] => MiGS [value] => migsvpc_server )
[paypal_here] => Array ( [label] => Credit Card Payment [value] => paypal_here )
)
UPDATE I further found out that when I click "Next" in Shipping Method, the request to saveShippingMethod/
returns an error:
Fatal error: Call to a member function getGiftMessageId() on a non-object in /path/to/magento/app/code/core/Mage/GiftMessage/Model/Observer.php on line 137