1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 22:54:25 +01:00
invoiceninja/app/Ninja/PaymentDrivers/PagSeguroPaymentDriver.php
David Bomba 7c776da4c0 PagSeguro (#1683)
* Pagarme (#3)

* revert error reporting

* fix for non boolean output

* Increment notification-pusher version

* fix env variable

* update routes

* Improve error handling for API_SECRET when testing API endpoint credentials

* exclude ping from Token check

* Google OAuth - Authentication with a backend server

* Refactor

* fix for client_id

* JSON formatting

* Update ActivityTransformer.php

add task id to activity transformer

* include project in task transformer

* update dependencies

* Payment Drivers

* transaction reference

* add PagSeguro to drivers table

* Update ApiCheck.php

* Update PagSeguroPaymentDriver.php
2017-10-01 16:42:36 +11:00

18 lines
333 B
PHP

<?php
namespace App\Ninja\PaymentDrivers;
class PagSeguroPaymentDriver extends BasePaymentDriver
{
protected function paymentDetails($paymentMethod = false)
{
$data = parent::paymentDetails($paymentMethod);
$data['transactionReference'] = $this->invoice()->invoice_number;
return $data;
}
}