hello there,
i am new in magento and i need some help. i have a website in magento with 10 stores on it. some stores have online payment, some not. now my question is: how to check stores programmatically if they have online payment.
the logic is:
foreach ($stores as store){
if(store.hasOnlinePayment == true){
//do something
}
}
if there is something that you don't understand, ask me.
greetings.
@genci_mpl you should get active payment method by using below code.
$payments = Mage::getSingleton('payment/config')->getActiveMethods();
Cheers
hello again,
i think you didn't understand me or i haven't described it good. so, all i want is the code to check if a store has paypal payment active (if the store can do paypal payment).
something like this:
if(storeId->hasPaypalActive == true){
//do something
}
i think it is simple. i have searched a lot but i haven't found something.
greetings.