1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00
invoiceninja/app/Ninja/PaymentDrivers/PaymentExpressPxPostPaymentDriver.php
2019-03-10 09:45:44 +02:00

18 lines
396 B
PHP

<?php
namespace App\Ninja\PaymentDrivers;
use Request;
class PaymentExpressPxPostPaymentDriver extends BasePaymentDriver
{
protected function paymentDetails($paymentMethod = false)
{
$data = parent::paymentDetails();
$data['transactionId'] = substr($data['transactionId'] . '-' . strrev($this->invoice()->updated_at->timestamp), 0, 15);
return $data;
}
}