1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 12:42:36 +01:00
invoiceninja/app/Ninja/PaymentDrivers/PayFastPaymentDriver.php
2019-01-30 22:25:37 +11: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'),
]);
}
}