mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 12:42:36 +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'),
|
|
]);
|
|
}
|
|
}
|