1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 13:42:49 +01:00
invoiceninja/app/Ninja/PaymentDrivers/MolliePaymentDriver.php
2016-07-14 22:37:04 +02:00

27 lines
569 B
PHP

<?php
namespace App\Ninja\PaymentDrivers;
/**
* Class MolliePaymentDriver
*/
class MolliePaymentDriver extends BasePaymentDriver
{
/**
* @param $input
*
* @return \App\Models\Payment|mixed
*/
public function completeOffsitePurchase($input)
{
$details = $this->paymentDetails();
$details['transactionReference'] = $this->invitation->transaction_reference;
$response = $this->gateway()->fetchTransaction($details)->send();
return $this->createPayment($response->getTransactionReference());
}
}