paymentDetails(); $details['transactionReference'] = $this->invitation->transaction_reference; $response = $this->gateway()->fetchTransaction($details)->send(); if ($response->isCancelled()) { return false; } elseif (! $response->isSuccessful()) { throw new Exception($response->getMessage()); } return $this->createPayment($response->getTransactionReference()); } }