/**
  * Sets amount and currency of the record depending on plan (and on input options if applicable)
  *
  * @param  cbPaidProduct  $plan
  */
 public function getCurrencyAmount($plan)
 {
     if ($plan->_options) {
         $this->amount = $plan->_options->get('amount');
     }
     $this->currency = $plan->currency();
 }
	/**
	 * Sets amount and currency of the record depending on plan (and on input options if applicable)
	 *
	 * @param  cbPaidProduct  $plan
	 */
	public function getCurrencyAmount( &$plan ) {
		$this->amount					=	$plan->get( 'rate' );
		$this->currency					=	$plan->currency();
	}