Webhook update for webhook/nofraud/update-status payload

Created on 24 April 2024, 7 months ago
Updated 23 May 2024, 6 months ago

Problem/Motivation

The NoFraud service does send the payload as a body request in JSON-encoded format. This means that such a statement won't work:

// Get the decision value passed from NoFraud service.
$decision = $request->query->get('decision');
// Get the decision ID passed from NoFraud service.
$decision_id = $request->query->get('decision_id');

Steps to reproduce

Trigger the webhook usage from NoFraud side.

Proposed resolution

Change the code to something like:

$message = json_decode($request->getContent(), TRUE);
// Get the decision value passed from NoFraud service.
$decision = $message->decision;
// Get the decision ID passed from NoFraud service.
$decision_id = $message->decision_id;

Remaining tasks

Write the proper patch and push a new release tag.

User interface changes

No.

API changes

No.

Data model changes

No.

💬 Support request
Status

Fixed

Version

1.0

Component

Code

Created by

🇲🇩Moldova andrei.vesterli Chisinau

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024