Add source to invoice criteria. Modify invoice rules to get service fees from... #1701

Merged
arcticzero merged 217 commits from 746-resq-2-0-final into master 2023-11-22 08:54:48 +00:00
2 changed files with 4 additions and 1 deletions
Showing only changes of commit cbe84d1cc8 - Show all commits

View file

@ -25,7 +25,7 @@ class InsuranceController extends Controller
public function listen(Request $req)
{
$payload = $req->request->all();
$payload = json_decode($req->getContent(), true);
// DEBUG
@file_put_contents(__DIR__ . '/../../var/log/insurance.log', print_r($payload, true) . "\r\n----------------------------------------\r\n\r\n", FILE_APPEND);
@ -41,6 +41,8 @@ class InsuranceController extends Controller
// if no transaction code given, silently fail
if (empty($attr['transaction_code'])) {
error_log("Invalid insurance callback received: " . print_r($payload, true));
return $this->json([
'success' => true,
]);

View file

@ -36,6 +36,7 @@ class PayMongoController extends Controller
// if no event type given, silently fail
if (empty($attr['type'])) {
error_log("Invalid paymongo callback received: " . print_r($payload, true));
return $this->json([
'success' => true,
]);