1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Fix for Payment Express

This commit is contained in:
Hillel Coren 2019-02-19 12:06:11 +02:00
parent bd8414f0d8
commit 006bb1c6e4
2 changed files with 34 additions and 0 deletions

View File

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

View File

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