/** * Get the number of decimal places in the payment currency. * * @return integer */ public function getCurrencyDecimalPlaces() { if ($currency = Currency::find($this->getCurrency())) { return $currency->getDecimals(); } return 2; }
public function testAll() { $currencies = Currency::all(); $this->assertTrue(isset($currencies['USD'])); $this->assertFalse(isset($currencies['XYZ'])); }