App\Ninja\PaymentDrivers\MolliePaymentDriver::completeOffsitePurchase PHP Method

completeOffsitePurchase() public method

public completeOffsitePurchase ( $input )
    public function completeOffsitePurchase($input)
    {
        $details = $this->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());
    }
MolliePaymentDriver