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-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());
}
}