1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00
invoiceninja/app/Ninja/PaymentDrivers/PayFastPaymentDriver.php
2017-10-24 17:43:57 +03:00

26 lines
553 B
PHP

<?php
namespace App\Ninja\PaymentDrivers;
use Request;
class PayFastPaymentDriver extends BasePaymentDriver
{
protected $transactionReferenceParam = 'm_payment_id';
protected function paymentDetails($paymentMethod = false)
{
$data = parent::paymentDetails();
$data['notifyUrl'] = $this->invitation->getLink('complete', true);
return $data;
}
public function completeOffsitePurchase($input)
{
parent::completeOffsitePurchase([
'token' => Request::query('pt'),
]);
}
}