cancel
Showing results for 
Search instead for 
Did you mean: 

Weird Payment Method Proble,

Weird Payment Method Proble,

I'm working on customizing the payment options available to customers on a Magento store and I've hit a very weird bug.

I'm trying to restrict the use of the purchase order payment method to specific customers. I've written the code, tested it on my dev server which is an exact copy of the live server's files and db and all is well.

On the live server however the purchase order method is behaving oddly. I can see it in admin, and it's showing up in the checkout. If I disable it in admin it STILL shows up in the checkout (cache is disabled at the moment and I've cleared it several times). If I log all the payment methods installed to a log file whilst checking out I can't see "purchaseorder" in the list but I can see all the others methods, active or not.

I've restarted apache and cleared the cache again and the purchase order method still won't show.

Mage::log($method->getCode());

Here's what my log file says:

2015-07-02T13:21:04+00:00 DEBUG (7): paypal_express
2015-07-02T13:21:04+00:00 DEBUG (7): paypaluk_express
2015-07-02T13:21:16+00:00 DEBUG (7): ccsave
2015-07-02T13:21:16+00:00 DEBUG (7): checkmo
2015-07-02T13:21:16+00:00 DEBUG (7): free
2015-07-02T13:21:16+00:00 DEBUG (7): banktransfer
2015-07-02T13:21:16+00:00 DEBUG (7): cashondelivery
2015-07-02T13:21:16+00:00 DEBUG (7): authorizenet
2015-07-02T13:21:16+00:00 DEBUG (7): paypal_express
2015-07-02T13:21:16+00:00 DEBUG (7): paypal_express_bml
2015-07-02T13:21:16+00:00 DEBUG (7): paypal_direct
2015-07-02T13:21:16+00:00 DEBUG (7): paypal_standard
2015-07-02T13:21:16+00:00 DEBUG (7): paypaluk_express
2015-07-02T13:21:16+00:00 DEBUG (7): paypaluk_direct
2015-07-02T13:21:16+00:00 DEBUG (7): verisign
2015-07-02T13:21:16+00:00 DEBUG (7): paypal_billing_agreement
2015-07-02T13:21:16+00:00 DEBUG (7): payflow_link
2015-07-02T13:21:16+00:00 DEBUG (7): payflow_advanced
2015-07-02T13:21:16+00:00 DEBUG (7): hosted_pro
2015-07-02T13:21:16+00:00 DEBUG (7): googlecheckout
2015-07-02T13:21:16+00:00 DEBUG (7): paypaluk_express_bml
2015-07-02T13:21:16+00:00 DEBUG (7): authorizenet_directpost
2015-07-02T13:21:16+00:00 DEBUG (7): paypointgateway_direct
2015-07-02T13:21:16+00:00 DEBUG (7): paypointgateway_hosted
2015-07-02T13:21:16+00:00 DEBUG (7): paypointgateway_paypal
2015-07-02T13:21:16+00:00 DEBUG (7): moneybookers_acc
2015-07-02T13:21:16+00:00 DEBUG (7): moneybookers_csi
2015-07-02T13:21:16+00:00 DEBUG (7): moneybookers_did
2015-07-02T13:21:16+00:00 DEBUG (7): moneybookers_dnk
2015-07-02T13:21:16+00:00 DEBUG (7): moneybookers_ebt
2015-07-02T13:21:16+00:00 DEBUG (7): moneybookers_ent
2015-07-02T13:21:16+00:00 DEBUG (7): moneybookers_gcb
2015-07-02T13:21:16+00:00 DEBUG (7): moneybookers_gir
2015-07-02T13:21:16+00:00 DEBUG (7): moneybookers_idl
2015-07-02T13:21:16+00:00 DEBUG (7): moneybookers_lsr
2015-07-02T13:21:16+00:00 DEBUG (7): moneybookers_mae
2015-07-02T13:21:16+00:00 DEBUG (7): moneybookers_npy
2015-07-02T13:21:16+00:00 DEBUG (7): moneybookers_pli
2015-07-02T13:21:16+00:00 DEBUG (7): moneybookers_psp
2015-07-02T13:21:16+00:00 DEBUG (7): moneybookers_pwy
2015-07-02T13:21:16+00:00 DEBUG (7): moneybookers_sft
2015-07-02T13:21:16+00:00 DEBUG (7): moneybookers_so2
2015-07-02T13:21:16+00:00 DEBUG (7): moneybookers_wlt
2015-07-02T13:21:16+00:00 DEBUG (7): moneybookers_obt

Only PayPoint and Purchase Order are activated in admin. Why isn't purchaseorder in the list?