mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 00:17:34 -05:00 
			
		
		
		
	Merge branch 'develop' of github.com:invoiceninja/invoiceninja into develop
This commit is contained in:
		
						commit
						66cf5f0d32
					
				
							
								
								
									
										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