wip
This commit is contained in:
1 parent
1c00a28744
commit
b5e57bccc8
1 file changed
+14
-12
@@ -58,21 +58,23 @@ public function handle(ActionFields $fields, Collection $models)
|
||||
pay_purpose: $sberPaymentOrder->created_at->translatedFormat('F').' '.$sberPaymentOrder->created_at->format('Y')
|
||||
);
|
||||
|
||||
$success = $systemResponse['errCode'] == 0;
|
||||
gettype($systemResponse);
|
||||
|
||||
if ($success) {
|
||||
$orderItem->update([
|
||||
'synced_with_system' => true,
|
||||
]);
|
||||
} else {
|
||||
$orderItem->update([
|
||||
'synced_with_system' => false,
|
||||
]);
|
||||
}
|
||||
// $success = $systemResponse['errCode'] == 0;
|
||||
|
||||
// if ($success) {
|
||||
// $orderItem->update([
|
||||
// 'synced_with_system' => true,
|
||||
// ]);
|
||||
// } else {
|
||||
// $orderItem->update([
|
||||
// 'synced_with_system' => false,
|
||||
// ]);
|
||||
// }
|
||||
|
||||
return Action::modal('modal-response', [
|
||||
'html' => $success ? "Success" : "Fail",
|
||||
'title' => $success ? "Success" : "Fail",
|
||||
// 'html' => $success ? "Success" : "Fail",
|
||||
// 'title' => $success ? "Success" : "Fail",
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user