wip
This commit is contained in:
@@ -58,21 +58,23 @@ class SyncWithSystem extends Action
|
|||||||
pay_purpose: $sberPaymentOrder->created_at->translatedFormat('F').' '.$sberPaymentOrder->created_at->format('Y')
|
pay_purpose: $sberPaymentOrder->created_at->translatedFormat('F').' '.$sberPaymentOrder->created_at->format('Y')
|
||||||
);
|
);
|
||||||
|
|
||||||
$success = $systemResponse['errCode'] == 0;
|
gettype($systemResponse);
|
||||||
|
|
||||||
if ($success) {
|
// $success = $systemResponse['errCode'] == 0;
|
||||||
$orderItem->update([
|
|
||||||
'synced_with_system' => true,
|
// if ($success) {
|
||||||
]);
|
// $orderItem->update([
|
||||||
} else {
|
// 'synced_with_system' => true,
|
||||||
$orderItem->update([
|
// ]);
|
||||||
'synced_with_system' => false,
|
// } else {
|
||||||
]);
|
// $orderItem->update([
|
||||||
}
|
// 'synced_with_system' => false,
|
||||||
|
// ]);
|
||||||
|
// }
|
||||||
|
|
||||||
return Action::modal('modal-response', [
|
return Action::modal('modal-response', [
|
||||||
'html' => $success ? "Success" : "Fail",
|
// 'html' => $success ? "Success" : "Fail",
|
||||||
'title' => $success ? "Success" : "Fail",
|
// 'title' => $success ? "Success" : "Fail",
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user