mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
26 lines
553 B
PHP
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'),
|
|
]);
|
|
}
|
|
}
|