wip
This commit is contained in:
1 parent
5ebf573da2
commit
9c236aa8a8
4 files changed
+69
-10
No files matched your search
@@ -43,7 +43,7 @@ public static function checkPaymentVisaMaster(Request $request): array
|
||||
]);
|
||||
|
||||
if ($response->failed()) {
|
||||
return static::failedPaymentResponse($paymentHistory, $bank_branch, $resource, $returnURL);
|
||||
return static::failedPaymentResponse($paymentHistory, $bank_branch, $resource, $returnURL, $response);
|
||||
}
|
||||
|
||||
$payment_status = $response['paymentAmountInfo']['depositedAmount'] > 0;
|
||||
@@ -65,7 +65,7 @@ public static function checkPaymentVisaMaster(Request $request): array
|
||||
'api_response' => $response->json(),
|
||||
]);
|
||||
|
||||
return static::successfulPaymentResponse($paymentHistory, $bank_branch, $resource, $returnURL);
|
||||
return static::successfulPaymentResponse($paymentHistory, $bank_branch, $resource, $returnURL, $response);
|
||||
}
|
||||
|
||||
$resource->update([
|
||||
@@ -81,6 +81,6 @@ public static function checkPaymentVisaMaster(Request $request): array
|
||||
'api_response' => $response->json(),
|
||||
]);
|
||||
|
||||
return static::failedPaymentResponse($paymentHistory, $bank_branch, $resource, $returnURL);
|
||||
return static::failedPaymentResponse($paymentHistory, $bank_branch, $resource, $returnURL, $response);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user