Example #1
0
 /**
  * Set Currency
  * 
  * @since 1.0.0
  * @param string $currency
  * @return \Icepay_Pbm_Object
  * @throws Exception
  */
 public function setCurrency($currency)
 {
     if (!Icepay_Parameter_Validation::currency($currency)) {
         throw new Exception('Please enter a valid currency format (ISO 4217)', 1004);
     }
     $this->currency = $currency;
     return $this;
 }