* 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:
David Bomba 2017-10-01 16:42:36 +11:00 committed by GitHub
parent 6a66000db7
commit 7c776da4c0
5 changed files with 632 additions and 379 deletions

View 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;
}
}

View File

@ -0,0 +1,8 @@
<?php
namespace App\Ninja\PaymentDrivers;
class PagarmePaymentDriver extends BasePaymentDriver
{
protected $transactionReferenceParam = 'transactionReference';
}

View File

@ -86,7 +86,8 @@
"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",

980
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -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) {