1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 16:31:33 +02:00
invoiceninja/app/Ninja/PaymentDrivers/MolliePaymentDriver.php
2016-07-21 15:35:23 +03:00

17 lines
445 B
PHP

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