Fix for tests (typo)

This commit is contained in:
David Bomba 2021-01-12 09:06:56 +11:00
parent 7d69f5eba3
commit 63087de0bc
3 changed files with 15 additions and 1 deletions

View File

@ -468,4 +468,16 @@ class BaseDriver extends AbstractPaymentDriver
{ {
return $this->company_gateway->id; return $this->company_gateway->id;
} }
public function logSuccessfulGatewayResponse($response, $gateway_const)
{
SystemLogger::dispatch(
$response,
SystemLog::CATEGORY_GATEWAY_RESPONSE,
SystemLog::EVENT_GATEWAY_SUCCESS,
$gateway_const,
$this->client,
);
}
} }

View File

@ -103,6 +103,8 @@ class CreditCard
if ($server_response->status == 'succeeded') { if ($server_response->status == 'succeeded') {
$this->stripe->confirmGatewayFee($request); $this->stripe->confirmGatewayFee($request);
$this->stripe->logSuccessfulGatewayResponse(['response' => $request->gateway_response, 'data' => $this->stripe->payment_has], SystemLog::TYPE_STRIPE);
return $this->processSuccessfulPayment(); return $this->processSuccessfulPayment();
} }

View File

@ -31,7 +31,7 @@ class FixCompanySettingsUrl extends Migration
Schema::table('companies', function (Blueprint $table) { Schema::table('companies', function (Blueprint $table) {
$table->dropColumn('logo'); $table->dropColumn('logo');
$tbale->dropColumn('expense_amount_is_pretax'); $table->dropColumn('expense_amount_is_pretax');
}); });
Schema::table('tasks', function (Blueprint $table) { Schema::table('tasks', function (Blueprint $table) {