mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
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
This commit is contained in:
parent
6a66000db7
commit
7c776da4c0
17
app/Ninja/PaymentDrivers/PagSeguroPaymentDriver.php
Normal file
17
app/Ninja/PaymentDrivers/PagSeguroPaymentDriver.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?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;
|
||||
}
|
||||
|
||||
|
||||
}
|
8
app/Ninja/PaymentDrivers/PagarmePaymentDriver.php
Normal file
8
app/Ninja/PaymentDrivers/PagarmePaymentDriver.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace App\Ninja\PaymentDrivers;
|
||||
|
||||
class PagarmePaymentDriver extends BasePaymentDriver
|
||||
{
|
||||
protected $transactionReferenceParam = 'transactionReference';
|
||||
}
|
@ -86,8 +86,9 @@
|
||||
"webpatser/laravel-countries": "dev-master",
|
||||
"websight/l5-google-cloud-storage": "dev-master",
|
||||
"wepay/php-sdk": "^0.2",
|
||||
"wildbit/laravel-postmark-provider": "3.0"
|
||||
},
|
||||
"wildbit/laravel-postmark-provider": "3.0",
|
||||
"abdala/omnipay-pagseguro": "0.2"
|
||||
},
|
||||
"require-dev": {
|
||||
"codeception/c3": "~2.0",
|
||||
"codeception/codeception": "2.3.3",
|
||||
|
980
composer.lock
generated
980
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@ -73,6 +73,7 @@ class PaymentLibrariesSeeder extends Seeder
|
||||
['name' => 'Custom', 'provider' => 'Custom', 'is_offsite' => true, 'sort_order' => 9],
|
||||
['name' => 'FirstData Payeezy', 'provider' => 'FirstData_Payeezy'],
|
||||
['name' => 'GoCardless', 'provider' => 'GoCardlessV2\Redirect', 'sort_order' => 8, 'is_offsite' => true],
|
||||
['name' => 'PagSeguro', 'provider' => 'PagSeguro'],
|
||||
];
|
||||
|
||||
foreach ($gateways as $gateway) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user