order = $order; $this->clientResponse = $clientResponse; } public function getOrderId() { return $this->order->id; } public function getTransactionReference() { return 'ref' . time(); } public function toArray() { return parent::toArray() + [ 'amount' => $this->order->total->convertToCurrentCurrency()->round()->amount(), 'txnToken' => $this->clientResponse['txnToken'], ]; } }