1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-17 16:42:48 +01:00

Fixed PayFast integration

This commit is contained in:
Hillel Coren 2016-08-15 23:14:08 +03:00
parent f7e499da4d
commit ef4c0c4237
2 changed files with 5 additions and 3 deletions

View File

@ -6,8 +6,8 @@ class PayFastPaymentDriver extends BasePaymentDriver
public function completeOffsitePurchase($input)
{
if ($accountGateway->isGateway(GATEWAY_PAYFAST) && Request::has('pt')) {
$token = Request::query('pt');
}
parent::completeOffsitePurchase([
'token' => Request::query('pt')
]);
}
}

View File

@ -10,6 +10,7 @@ use App\Models\InvoiceDesign;
use App\Models\Client;
use App\Models\Contact;
use App\Models\Product;
use App\Models\DateFormat;
use Faker\Factory;
class UserTableSeeder extends Seeder
@ -42,6 +43,7 @@ class UserTableSeeder extends Seeder
'primary_color' => $faker->hexcolor,
'timezone_id' => 1,
'company_id' => $company->id,
//'date_format_id' => DateFormat::all()->random()->id,
]);
$user = User::create([