mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 13:42:49 +01:00
27 lines
569 B
PHP
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());
|
|
}
|
|
|
|
}
|