How to calculate currency according to reward points rate in Magento

$rate = Mage::getModel('enterprise_reward/reward_rate');
  			$rate->fetch(1, Mage::app()->getStore()->getId(),Enterprise_Reward_Model_Reward_Rate::RATE_EXCHANGE_DIRECTION_TO_CURRENCY);
  			echo $rate->calculateToCurrency(100);

你可能感兴趣的:(PHP,Exchange)