public function setAmount($price) { $this->amount = PaypalPayment::Amount(); $this->amount->setCurrency("AUD"); $this->amount->setTotal($price); }