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) public function completeOffsitePurchase($input)
{ {
if ($accountGateway->isGateway(GATEWAY_PAYFAST) && Request::has('pt')) { parent::completeOffsitePurchase([
$token = Request::query('pt'); 'token' => Request::query('pt')
} ]);
} }
} }

View File

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