Resolve "Add Paramount insurance and PayMongo support for RESQ2 API" #1699

Merged
arcticzero merged 22 commits from 761-add-paramount-insurance-and-paymongo-support-for-resq2-api into 746-resq-2-0-final 2023-11-17 20:28:03 +00:00
3 changed files with 18 additions and 0 deletions
Showing only changes of commit e3a79361bd - Show all commits

View file

@ -53,6 +53,10 @@ security:
pattern: ^\/test_capi\/
security: false
insurance:
pattern: ^\/insurance\/
security: false
paymongo:
pattern: ^\/paymongo\/
security: false

View file

@ -39,6 +39,13 @@ class InsuranceController extends Controller
// END DEBUG
// if no transaction code given, silently fail
if (empty($attr['transaction_code'])) {
return $this->json([
'success' => true,
]);
}
// get event type and process accordingly
$event_name = $payload['transaction_code'];

View file

@ -34,6 +34,13 @@ class PayMongoController extends Controller
// END DEBUG
// if no event type given, silently fail
if (empty($attr['type'])) {
return $this->json([
'success' => true,
]);
}
// get event type and process accordingly
$attr = $payload['data']['attributes'];
$event = $attr['data'];