JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $this->id]); if ($amount > 0){ $refund->amount = $amount; } if ($refund->save()){ $payment = self::get($this->id); $this->_fillFromArray($this, $payment->toArray()); return true; }else{ $this->error = $refund->error; return false; } } /** * capture * @param int $amount * @return Payment * @throws \Exception */ public function capture($amount = 0) { $this->capture = true; if ($amount > 0){ $this->transaction_amount = $amount; } return $this->update(); } }